Skip to content

Instantly share code, notes, and snippets.

@damien-roche
Last active March 31, 2021 20:28
Show Gist options
  • Save damien-roche/de089e1c84695822ccc3045da75ee3e7 to your computer and use it in GitHub Desktop.
Save damien-roche/de089e1c84695822ccc3045da75ee3e7 to your computer and use it in GitHub Desktop.
Slim Template Google Analytics (2018)
script{ async src="https://www.googletagmanager.com/gtag/js?id=YOURIDHERE" }
javascript:
window.dataLayer = window.dataLayer || [];
function gtag(){ dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'YOURIDHERE');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment