Results 1 to 1 of 1
-
10-19-2011, 08:16 PM #1
Freshman
- Join Date
- Oct 2011
- Posts
- 16
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
Filtering Cookies In Asynchronous Code !! Google Analytics
Well I have found many people having dynamic ip and getting problem setting up cookie filtering in Google analytic so i came up with a small tutorial.
How to setup cookie filtering in asynchronous code:-
1) Setup a new page named example.html on your server and paste the code below
Change UA-XXXXXXX-X with your unique property ID.<script type=”text/javascript”>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXX-X']);
_gaq.push(['_setVar','cookie_filter']);
_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>
Next , create a filter —> click on edit profile and add filter
Now you are done just visit the page named example.html and you are done…Name of Filter – Exclude me
Filter Type: Custom filter > Exclude
Filter Field: User Defined
Filter Pattern: cookie_filter
Case Sensitive: No

Source Of Article:- http://www.bullten.com/cookie-filter...gle-analytics/
Similar Threads
-
What is asynchronous tracking?
By bgjyd834 in forum Search Engine OptimizationReplies: 4Last Post: 08-05-2011, 01:07 AM -
How to Add Google Analytics Conversion Code to Vbulletin Registration Complete Page
By manik in forum Forum ManagementReplies: 5Last Post: 06-21-2011, 02:40 AM -
SPAM mail filtering software
By rkraj in forum Computer and TechReplies: 2Last Post: 05-16-2011, 08:19 AM -
WP - Inserting Google Analytics code
By himoacs in forum BloggingReplies: 18Last Post: 12-25-2009, 02:58 AM -
How to add Google analytics code to wordpress blog
By vikasseo in forum Search Engine OptimizationReplies: 4Last Post: 01-08-2009, 04:35 AM


Reply With Quote

