123 Snippets
<10 Favourites
<10 Downloads

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) {} );

om.Main.parseCampaigns

document.addEventListener('om.Main.parseCampaigns', function(event) { // This event is passed the xhr object console.log(event.detail.xhr); } );

om.Campaigns.init

document.addEventListener('om.Campaigns.init', function(event) { // This event is passed the Campaigns object console.log(event.detail.Campaigns); } );

om.Types.init

document.addEventListener('om.Types.init', function(event) { // The Campaign type. console.log(event.detail.Types.type); // The Campaign Type object (one of Floating,…

1 8 9 10 11