Skip to content

Instantly share code, notes, and snippets.

View franzdumfart's full-sized avatar
🤐
Why waste time say lot word when few word do trick?

Franz Dumfart franzdumfart

🤐
Why waste time say lot word when few word do trick?
View GitHub Profile
@rezwyi
rezwyi / google.analytics.js.coffee
Last active January 16, 2017 11:35
Google Analytics script in CoffeeScript
# See http://stackoverflow.com/questions/4214731/coffeescript-global-variables
root = exports ? this
root._gaq = [['_setAccount', 'UA-xxxxxxxx-y'], ['_trackPageview']]
insertGAScript = ->
ga = document.createElement 'script'
ga.type = 'text/javascript'
ga.async = true
proto = document.location.protocol