OptinMonster Team
Member since March 2023
om-custom-redirect-close.js
jQuery(document).ready(function($){ function omRedirect() { var url = "https://optinmonster.com"; $(location).attr('href',url); } $(document).on('OptinMonsterOnClose', function(event, data, object){ if(data.optin =…
plain-css.css
html div#om-{{id}} * { /* Anything inside here will be applied to all elements within your…
floating bar css
html div#om-{{id}}.CampaignType--floating { position: absolute !important; top: 0 !important; display: block !important; background: #0B8BBB !important; }
om.Ruleset.init
document.addEventListener('om.Ruleset.init', function(event) { console.log(event.detail.Ruleset); // An array of the Group objects console.log(event.detail.Ruleset.groups); console.log(event.detail.Campaign); } );
om.Campaign.cleanup
document.addEventListener('om.Campaign.cleanup', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); } );
registering query args as smart tag on campaign load
document.addEventListener('om.Campaign.load', function(event) { const queryString = window.location.search; // capture all query args // Registers a custom…
disable OptinMonster campaigns for visitors with specific user roles
function om_docs_hide_optin_for_user_roles( $campaigns ) { // Do nothing if no user is logged in. if (…