Mobile app version of vmapp.org
Login or Join
Kristi941

: 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

@Kristi941

Posted in: #GoogleAnalytics

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?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Kristi941

2 Comments

Sorted by latest first Latest Oldest Best

 

@Vandalay111

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.

10% popularity Vote Up Vote Down


 

@Si4351233

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?

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme