Websites/Snippets/Impressions/Specs/URL Parameters

From MozillaWiki
Jump to: navigation, search

URL Parameter Spec

The ajax ping that occurs according to sampling rate.

{stats-server-url}.html?snippet_name=XXXX&locale=XXXX&metric=XXXX

Example
{stats-server-url}.html?snippet_name=3706&locale=en-US&metric=impression
  1. snippet_name : string (unique) - ID of snippet.
  2. locale : string - locale of the request (e.g. en-US)
  3. metric : string - type of request (e.g. impression, link click)

Snippet Link Spec

We append this data to links contained in snippets to track click-through.

{some-link}.html?sample_rate=XXXX&snippet_name=XXXX&locale=XXXX&metric=XXXX

Example
{some-link}.html?sample_rate=0.1&snippet_name=3706&locale=en-US&metric=impression
  1. sample_rate : float - the current sampling rate
  2. snippet_name : string (unique) - ID of snippet.
  3. locale : string - locale of the request (e.g. en-US)
  4. metric : string - type of request (e.g. impression, link click)