Last active
October 11, 2020 15:20
-
-
Save LucasLarson/0ae0b043095fcb048b835a70a0585fd9 to your computer and use it in GitHub Desktop.
Google Analytics local `gtag.js` but less unreadable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.dataLayer = window.dataLayer || [] | |
function gtag () { | |
window.dataLayer.push(arguments) | |
} | |
gtag( | |
'js', | |
new Date() | |
) | |
gtag( | |
'config', | |
'UA-123456-7' | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment