: Can Google Analytics be configured to ignore UTM parameters with specific values? How do I set up Google Analytics to ignore UTM parameters if utm_source=something (or medium/campaign)? I want
How do I set up Google Analytics to ignore UTM parameters if utm_source=something (or medium/campaign)? I want GA to track it as a referral traffic instead (or direct traffic, if the referrer doesn't happen to be passed). I want GA to treat the link as if the UTM parameters did not exist.
Is this possible to accomplish?
More posts by @Candy875
2 Comments
Sorted by latest first Latest Oldest Best
If you can't modify your .htaccess, or you just want to do that for only some views, you can apply Search&Replace filter in your Google Analytics view like this:
Obviously, instead of "something" you put the target medium of that campaign. You can do the same for source and other utm parameters. You need to just create another filter and choose the respective filter field.
A solution would be to redirect away from UTM parameters with specific values. Google Analytics doesn't record the values until the JavaScript on the page executes. Server side redirects happen before Google Analytics has a chance to see the parameters.
# Remove the query string when it contains analytics
# parameters that should be ignored
RewriteCond %{QUERY_STRING} utm_source=something
RewriteRule (.*) /
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.