Skip to content

Instantly share code, notes, and snippets.


danielmcclure/ga4fbia.js Secret

Created Mar 26, 2017
What would you like to do?
Google Analytics for Facebook Instant Articles (Full Snippet)
<figure class="op-tracker">
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
ga('create', 'UA-XXXXXXXX-XX', 'auto');
ga('require', 'displayfeatures');
ga('set', 'campaignSource', 'Facebook');
ga('set', 'campaignMedium', 'Social Instant Article');
ga('set', 'title', 'FBIA: '+ia_document.title);
ga('send', 'pageview');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.