: Google analytics counts redirects from chrome extension I have a chrome extension that redirects the user back to his dashboard. sometimes they might be on another domain and hit the extension
I have a chrome extension that redirects the user back to his dashboard. sometimes they might be on another domain and hit the extension and redirects to the dashboard on my website.
Google analytics show this as part of the traffic, when in fact it should not be! it has polluted a great deal of the traffic and I can't tell which one are actual referrals and which one were just a user hitting the extension and being redirected to my website.
Is there a way to filter these out and prevent this event from being tracked?
More posts by @Kristi941
2 Comments
Sorted by latest first Latest Oldest Best
In Google Webmaster Tools you can exclude parameters. I would do this so Google will not index those parameters as separate urls.
You will see parameters like "utm_source" and "utm_medium".
Next add this to your .htaccess:
#Removes Campaign Url Parameters
RewriteCond %{QUERY_STRING} ^((.*?)&|)utm_
RewriteRule ^(.*)$ %{HTTP_HOST}/?%2 [R=301,NE,L]
I would test any .htaccess mods on test server first but I can verify that code works.
Could you append something like ?extensiontraffic to the URLs used in your Chrome extension and then apply a profile filter in GA to remove any of these visits from your reports?
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.