Created
October 28, 2014 21:32
-
-
Save rasummer/aab17853421b7c7074be to your computer and use it in GitHub Desktop.
Marketo snippet
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
<script type="text/javascript"> | |
(function() { | |
var didInit = false; | |
function initMunchkin() { | |
if(didInit === false) { | |
didInit = true; | |
Munchkin.init('558-NCX-702'); | |
} | |
} | |
var s = document.createElement('script'); | |
s.type = 'text/javascript'; | |
s.async = true; | |
s.src = '//munchkin.marketo.net/munchkin.js'; | |
s.onreadystatechange = function() { | |
if (this.readyState == 'complete' || this.readyState == 'loaded') { | |
initMunchkin(); | |
} | |
}; | |
s.onload = initMunchkin; | |
document.getElementsByTagName('head')[0].appendChild(s); | |
})(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment