Excluding Clients from being covered by statistics

I’am using Piwik,

But i want to exclude 2 PCs from beeing covered by the Statistiks.
Both PCs got dynamic IPs.

What ways are possible to archive my goal ?

Hi
Is there a Javascript function to extract the DNS hostname of the host it is running on? Does anybody know that? If yes, you can assign DNS names to those PCs and you could amend the Piwik tag by something like “If I am running on (getcurrentsystemhostname) then don’t use Piwik”.

If not: You might write a mini JS file that defines “var dontcountme = 1”. Place that on a http:// location or directory where only those two PCs/users have access. Amend your Piwik tag by something similar to “If dontcountme==1 then don’t use Piwik”. (I assume it is the users you want to exclude, not the machines. Because they are administrators or webmasters and access their site all the time, and they shall not make a “false impression” :-))).

If not possible: Write a mini HTML/JS sequence that creates a “dont count me” cookie. Must probably be in the same location than Piwik. Run that HTML/JS code on the respective PCs. Then amend the Piwik tag by some code that looks for that cookie and reacts to it.

There are probably more elegant ways to do it but as nobody answered your post I though I take a shot at it

Cheers,
Burkhard

Hmmm …
So i guess there is no easy way integrated in piwik …

maybe it should be.

thinking about what to do …

Exclusion by cookie or IP is coming in the next Piwik release (0.6).

You can try the BlockingCookie plugin in http://dev.piwik.org/trac/ticket/42 in the meantime.

[quote=vipsoft @ Apr 6 2010, 08:57 PM]Exclusion by cookie or IP is coming in the next Piwik release (0.6).

You can try the BlockingCookie plugin in dev.piwik.org/trac/ticket/42 in the meantime.[/quote]
Hmm thanks, i’ll try this!

This stoppt working for me sinced the last update of piwik.

I decided to wait for 0.6! :slight_smile:

Bye
Tiggr