Skip to content

Instantly share code, notes, and snippets.

@ericakfranz
Last active May 11, 2016 18:03
Show Gist options
  • Save ericakfranz/c5d0992a7fafed6a5f79 to your computer and use it in GitHub Desktop.
Save ericakfranz/c5d0992a7fafed6a5f79 to your computer and use it in GitHub Desktop.
Vanilla Javascript method for using OptinMonster Events
document.addEventListener( "DOMContentLoaded", function(event) {
document.onload('EventName', function( event,data,object ) {} );
});
@colecmc
Copy link

colecmc commented Dec 21, 2015

Should I be able to use this code in my "Custom HTML Form Code" integration?
If so, it's not working at the moment and I think errors are being suppressed.
Can you advise?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment