Skip to content

Instantly share code, notes, and snippets.

@benlumley
Last active May 28, 2020 16:37
Show Gist options
  • Save benlumley/14f028cbe3b4639db4aea1545815f490 to your computer and use it in GitHub Desktop.
Save benlumley/14f028cbe3b4639db4aea1545815f490 to your computer and use it in GitHub Desktop.
<script>
var timeOnPage = ({{DLV – gtm.timerEventNumber}} * {{DLV – gtm.timerInterval}}) / 1000;
fbq('trackCustom','Blog Tracking',{'Time on page': timeOnPage + 'seconds','page':'{{Page URL}}'});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment