How To Stop Google Analytics From Tracking Your Own Visits To Your Website
- SEO |
If you want to share the post on your own blog or whatever the link is here - How To Stop Google Analytics From Tracking Your Own Visits To Your Website (i'd much appreciate the organic link building as part of my case study)
Step 1
First log in and open your Google analytics account (http://www.google.com/analytics) and navigate to your site.
Step 2
On the right hand side you will see a cog symbol, click on this to open the settings.
Step 3
You will see the following text just above your default url: Web Property ID: UA-xxxxxxx-x . Copy this code (Just the UA-xxxxxxx-x).
Keep this tab open as we will need it later.
Step 4
Open notepad.
Step 5
Then paste the following code into notepad and replace UA-xxxxxxx-xx with your own UA code.
<script type=”text/javascript”> var _gaq = _gaq || []; _gaq.push(['_setAccount', ' UA-xxxxxxx-x']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true; ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’; var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s); })(); </script> <body onLoad=”javascript:pageTracker._setVar(‘test_value’);”>
Step 6
Now click File > Save As
Name the file something obscure and something a user is unlikely to type into their web browser when on your site, I just hit the keyboard randomly to do this. Add ‘.html’ to the end and click save.
Step 7
Now upload this file into the home/public_html directory via ftp. You will know when you are in the correct directory as you will see your standard wordpress folders: wp-admin, wp-content, wp-includes.
Step 8
Now we need to create a custom filter in Google Analytics. Go back to the tab where you got your UA-xxxxxxx-x code from and click on Filters > + New Filter
Step 9
Now enter the same information you see in the screenshot below and click Save.
Step 10
Navigate to the page that you uploaded. For example mine would be something like this -
http://www.internetmarketinghustle.c...-the-file.html
You should just see a blank white page.
That’s it you are done, you have successfully excluded your activity from Google Analytics.
Remember: You will have to visit this page each time you clear your cookies in your browser, so be sure to bookmark the page for future reference
Step 11
Just to double check you have done it right, visit the page a few times, refresh the page 5-10 times. Give it 1-2 hours (it can take up to 24 hours for stats to appear, please bear this in mind) and check that your activity has not been tracked by having a look in the ‘Content’ section of Google Analytics.
RECEIVE UNLIMITED CASH PAYMENTS DEPOSITED INTO YOUR FAVORITE ACCOUNT
VIA CASHAPP, PAYPAL, ZELLE
BUSINESS IN A BOX ![/B
and in the end the love you take is equal to the love you make.
We handle all your WordPress Content,Theme and Plugins updates!
iAdminWP