Privacy checkbox field remains at the top line
The following code snippet will ensure that the privacy checkbox remains at the top line if…
Remove All Campaigns From a Specific URL
document.addEventListener('om.Campaign.startShow', function(event) { if(window.location.href == 'https://example.com/specific-page') { // replace with your specific URL var optinCampaign =…
Remove Specific Campaign From a Specific URL
document.addEventListener('om.Campaign.startShow', function(event) { if(window.location.href == 'https://example.com/specific-page') { // replace with your specific URL var optinCampaign =…
Remove Specific Campaign From Any URLs Containing a Specific URL Path
document.addEventListener('om.Campaign.startShow', function(event) { if(window.location.search.indexOf('shopping-cart') > -1) { // replace shopping-cart wtih your specific URL path var…
Remove Specific Campaign Based on the Referral URL
document.addEventListener('om.Campaign.startShow', function(event) { if(document.referrer.search.indexOf('google.com') > 0) { // replace with the specific referral domain var optinCampaign…
Event Use
document.addEventListener('EVENT NAME', function(event) {} );
What is Available
document.addEventListener('om.Campaign.load', function(event) { console.log(event.detail); });
om.Api.init
document.addEventListener('om.Api.init', function(event) {} );
om.Main.init
document.addEventListener('om.Main.init', function(event) {} );