Google Analytics: Frafiltrering af IP-adresse via cookie
Hej folkensJeg har været ved at undersøge, hvordan man frafiltrerer trafik via cookies i stedet for ip-adresser, men det eneste jeg har kunnet finde er følgende vejledning:
-------------------------------------------------------------------------------------------------------------------
1. Create a new page on your domain, containing the following code:
<body onLoad="java script:pageTracker._setVar('test_value');">
(Please note that this code is in addition to the Google Analytics tracking code that you have on every page of your website.)
2. In order to set the cookie, visit your newly created page from all computers that you would like to exclude from your reports.
3. Create an Exclude filter to remove data from visitors with this cookie. Follow these instructions http://www.google.com/support/googleanalytics/bin/answer.py?answer=55494
to create a filter with the following settings:
Filter Type: Custom filter > Exclude
Filter Field: User Defined
Filter Pattern: test_value
Case Sensitive: No
-------------------------------------------------------------------------------------------------------------------
Problemet med den vejledning er, at den benytter sig af setvar (som jeg har læst flere steder er deprecated). Er der nogen her, som ved om det er muligt at opnå samme cookiefiltrering via pagetracker._setCustomVar(5,"Filter","admin",1)?
Hvis det er muligt, hvordan skal filteret så sættes op baseret på de nævnte indstillinger i setCustomVar()?
Mvh. Esben