Search code examples
phpgoogle-analyticsweb-traffic

Google Analytics without JavaScript or Cookies


I have a unique situation where I have a site with several thousand users who are all browing using a client that does not support JavaScript or cookies.

It is also unable to load normal image files, but instead will only load a special image type, NTFT

<img src="http://example.com/image.ntft" height="1" width="1" />

The client isn't a web browser per se, but renders a non-standard form of HTML.

I want to use Google Analytics to get visitor information for my site, and get unique visitor information. I get several hundred thousand hits and about ~40GB of bandwidth usage a day, so I'm very interested in the information for unique visitors. I've been looking at https://github.com/thomasbachem/php-ga but do not want anything like this: How do I get PHP-GA to stop incrementing real-time visitors in google analytics? to happen, as I'll get swamped with "Unique Visitors" that are really just one page visit.

I'm using PHP. Can you suggest a decent solution to measure traffic from unique visitors (unique IPs, for example)?


Solution

  • I would consider giving PIWIK a try. You can assign your users a unique ID and track them via the tracking API

    http://piwik.org/

    Tracking API DOCS: http://piwik.org/docs/tracking-api/

    PHP Client for Tracking API http://developer.piwik.org/api-reference/PHP-Piwik-Tracker