Skip to content

Instantly share code, notes, and snippets.

@jaridmargolin
Created February 17, 2016 01:05
Show Gist options
  • Save jaridmargolin/655237b41154be4f7e4e to your computer and use it in GitHub Desktop.
Save jaridmargolin/655237b41154be4f7e4e to your computer and use it in GitHub Desktop.
Async script loader for conversion_async.js
!function(e,n,t,a,o,c,r,s,i){e[o]||(r=e[o]=function(){r.track=arguments},
c=n.createElement(t),c.src=a,c.async=!0,c.addEventListener('load',function(){
r.track&&e[o].apply(this,r.track)}),s=n.getElementsByTagName(t)[0],s.parentNode.insertBefore(c,s))
}(window,document,'script','//www.googleadservices.com/pagead/conversion_async.js',
'google_trackConversion');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment