PHP implementation of Google Analytics

As you know the main implementation of GA is a JavaScript library which is all well and good as long as

  1. The user has JavaScript enabled
  2. Everything we want to track outputs html (so the GA code runs)

If we ever need to track page views and other events for a client who insists we catch that small minority of users with JavaScript turned off then we can us this

It can also be used in AJAX scripts and code that doesn’t actually display any html such as CSV export scripts.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>