Skip to content

Instantly share code, notes, and snippets.

@ericakfranz
Last active May 24, 2022 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericakfranz/b382bc6cdb229a9728d7e99fcfdb6473 to your computer and use it in GitHub Desktop.
Save ericakfranz/b382bc6cdb229a9728d7e99fcfdb6473 to your computer and use it in GitHub Desktop.
// Set OptinMonster Global Cookies when this function runs
function setGlobalCookies() {
document.cookie = "omSuccessCookie=true; expires=Fri, 31 Dec 9999 23:59:59 GMT";
document.cookie = "omGlobalSuccessCookie=true; expires=Fri, 31 Dec 9999 23:59:59 GMT";
document.cookie = "omGlobalInteractionCookie=true; expires=Fri, 31 Dec 9999 23:59:59 GMT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment