Skip to content

Instantly share code, notes, and snippets.

@novakin
Forked from tiefenb/Piwik AMP Tracking
Created April 28, 2016 10:21
Show Gist options
  • Save novakin/eb93c61e3e18a26bfddd9ed0b72ce031 to your computer and use it in GitHub Desktop.
Save novakin/eb93c61e3e18a26bfddd9ed0b72ce031 to your computer and use it in GitHub Desktop.
// change your piwik server host
// change YOUR_SITE_ID with your site id
<amp-pixel src="https://piwik.example.org/piwik.php?idsite=YOUR_SITE_ID&rec=1&action_name=TITLE&urlref=DOCUMENT_REFERRER&url=CANONICAL_URL&rand=RANDOM"></amp-pixel>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment