Get Paid to Participate - up to $1 per post!     Twitter     Facebook     Google+
Hosting Discussion

Hosting Discussion > Operating a Web Hosting Business > Promotion and Marketing > Cookie Filtering In New Asynchronous Code !! Google Analytics
forgot password?


  Post #1 (permalink)   10-15-2011, 03:33 PM
HD Addict
Join Date: Oct 2011
Posts: 177

Status: Bullten is offline
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

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXX-X']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);


Change UA-XXXXXXX-X with your unique property ID.

Next , create a filter ---> click on edit profile and add filter

Name of Filter - Exclude me
Filter Type: Custom filter > Exclude
Filter Field: User Defined
Filter Pattern: cookie_filter
Case Sensitive: No

Now you are done just visit the page named example.html and you are done...

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: