Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Load Google Analytics from external file
window.addEventListener('load', function () {
ga('create', 'UA-XXXXXXXX-1', 'auto')
ga('send', 'pageview')
<script type="text/javascript" src="" async id="ga"></script>
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.