Websites/Snippets/Impressions/Specs/URL Parameters
From MozillaWiki
< Websites | Snippets | Impressions
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
- snippet_name : string (unique) - ID of snippet.
- locale : string - locale of the request (e.g. en-US)
- 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
- sample_rate : float - the current sampling rate
- snippet_name : string (unique) - ID of snippet.
- locale : string - locale of the request (e.g. en-US)
- metric : string - type of request (e.g. impression, link click)