Skip to content

Instantly share code, notes, and snippets.

@robert-blankenship
Created December 2, 2015 00:36
Show Gist options
  • Save robert-blankenship/6da00e7b7640845f0f8e to your computer and use it in GitHub Desktop.
Save robert-blankenship/6da00e7b7640845f0f8e to your computer and use it in GitHub Desktop.
Mail Munch Integration
function createMailMunchScriptTag() {
var script = document.createElement('script');
script.setAttribute('src', "//s3.amazonaws.com/mailmunch/static/site.js");
script.setAttribute('id', "mailmunch-script");
script.setAttribute('data-mailmunch-site-id', 147159);
script.setAttribute('async', "async");
return script;
}
document.body.appendChild(createMailMunchScriptTag());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment