Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The second part of the system is the endpoint that handles the request from the tracking code. The service collects the information passed to it from the url as well as the request headers including Referer, User-Agent, Cookies, and Remote Ip Address. This information is stored in a datastore and metrics are calculated, both in real time as well as batched.

Important Features of a Tracking Pixel

  • Versioned - each request is versioned so that if non-compatible changes are made to the API, they can continue to support legacy code
  • Property Ids - This allows multiple websites to be tracked from the same endpoint
  • Client Id - This is a unique identifier for the user and is stored in a cookie on the user's browser. If the user clears their cookies, a new client id is generated. This is used to calculate new vs returning visitors.
  • Campaign/Source tracking - By adding url parameters to their url, a site owner can record the source of where the user came to the site from. Sometimes this information can be obtained from the referrer, but in the case of https or redirects, that information can be missing or not accurate. If a user lands on your page with specific campaign and source information, you can be relatively certain thats where they came from. NOTE: These tracking parameters "leak" as urls are copied and shared so switching campaigns regularly is advised.
  • Multiple Activities - The most common activity is pageview, but other activities a person performs could be useful as well such as transactions or events.
  • Timings - Allows analytics to track dns lookups and page load times.