and I don’t want to be campaign traked, matomo shoud save my visit information in matomo_log_visit but with then fields campaign_keyword, campaign_medium, campaign_name, campaign_source, campaign_content and campaign_id to null.
On the other hand, if I visit the same web page and I allow to be campaig traked, matomo should save my visit information in matomo_log_visit with the campaing_* fields full.
Not sure it can be done easily…
But I have a question: Why would users be tracked, but not with campaign… Are you sure the campaign can be considered as personal data? If not (what I believe), then the rule for being tracked or not should be the same than the rule for tracking the campaign or not…
Hi @heurteph-ei
We have different levels of privacy and one of them is if the users want to be tracked by campaigns.
Now we have an event and variable in tag manager that tells us if they want to be campaign tracked or not and if not we make an update to the database in order to put the campaign to null, but is quite dirty…
If my providing clue is working, then you have to improve the Custom URL field:
Instead of putting a static value, you should use an MTM variable of type JavaScript function, that will provide the full path (with campaign) when authorized, and extract the path without some parameters in other cases…