305 Snippets
<10 Favourites
<10 Downloads

om-exclude-campaign-revenue-attribution.js

document.addEventListener('om.Campaign.init', function(event) { if ('CAMPAIGN_ID' === event.detail.Campaign.id) { // replace CAMPAIGN_ID with the OptinMonster campaign's unique…

CSS for Countdown Timer text

Translate the text ‘Days’, ‘Hours’, ‘Minutes’, and ‘Seconds’ into another language.

om.Iframes.init

document.addEventListener('om.Iframes.init', function(event) { console.log(event.detail.Iframes); console.log(event.detail.Campaign); } );

om.Styles.init

document.addEventListener('om.Styles.init', function(event) { console.log(event.detail.Styles); console.log(event.detail.Campaign); } );

om.Action.view

document.addEventListener('om.Action.view', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); // This event is…

Slide Reposition Right Center v2

html div#om-{{id}} { margin-right: -20px !important; height: 540px !important; top: calc(540px / 2) !important; bottom: calc(540px…

om-custom-redirect-all-close.js

jQuery(document).ready(function($){ function omRedirect() { var url = "https://optinmonster.com"; $(location).attr('href',url); } $(document).on('OptinMonsterOnClose', function(event, data, object){ omRedirect(); });…

css-example.css

html div#om-{{id}} [class$="-form"] { /* Your custom styles */ }

om.Campaign.afterShow

document.addEventListener('om.Campaign.afterShow', function(event) { if (event.detail.Campaign.id == 'zjd3hxxogbfvmy2iz0rp') // your slug { var campaignID = 'om-'+ event.detail.Campaign.id;…

1 15 16 17 18 19 26