Mobile app version of vmapp.org
Login or Join
Candy875

: 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

@Candy875

Posted in: #GoogleAnalytics #Tracking

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?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Candy875

2 Comments

Sorted by latest first Latest Oldest Best

 

@Annie201

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.

10% popularity Vote Up Vote Down


 

@Heady270

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 (.*) /

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme