Comments on: How to stop Google Analytics from recording my own page views – excluding visits on dynamic IP too https://nabtron.com/how-to-stop-google-analytics-from-recording-my-own-page-views-excluding-visits-on-dynamic-ip-too/ Technology & Programming Guide Thu, 18 Apr 2019 03:12:47 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Dr. Nabeel https://nabtron.com/how-to-stop-google-analytics-from-recording-my-own-page-views-excluding-visits-on-dynamic-ip-too/#comment-12640 Wed, 21 Sep 2011 09:36:24 +0000 http://nabtron.com/?p=6495#comment-12640 In reply to P.S..

were you able to create the filter exactly as its done in the post?

]]>
By: P.S. https://nabtron.com/how-to-stop-google-analytics-from-recording-my-own-page-views-excluding-visits-on-dynamic-ip-too/#comment-12635 Wed, 21 Sep 2011 05:18:14 +0000 http://nabtron.com/?p=6495#comment-12635 Hi,

I have done d same thing. Created an extra.htm page with the following code:

var _gaq = _gaq || [];
_gaq.push([‘_setAccount’, ‘UA-XXXXXXXX-X’]);
_gaq.push([‘_setVar’,’cookie_excludeGA_XXXXXXX’]);
_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);
})();

Then I created the exclude filter in GA. But now I can see the excluded visits in User Defined report of GA. Not only that I have total 1152 visits to the website. The user defined report shows 1150 visits (not set) and 2 visits under the cookie name that I created. This clearly means that GA is not excluding my visits. Can you please guide what is wrong with it?

Thanks.

]]>