305 Snippets
<10 Favourites
<10 Downloads

om.Action.refresh

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

om external links monsterlink

(function(window, document) { // Your campaign's UNIQUE ID var campaignSlug = 'YOUR-UNIQUE-ID'; // Helper to get…

Success view

#om-{{id}}-success button.{{ns}}-CloseButton { /* Your Custom Styles */ }

Remove Specific Campaign From Any URLs Containing a Specific URL Path-v1

document.addEventListener('om.Campaign.startShow', function(event) { if(window.location.search.indexOf('shopping-cart') > -1) { // replace shopping-cart wtih your specific URL path var…

om-vue.js

// Using Vue Router. import Vue from 'vue'; import Router from 'vue-router'; Vue.use(Router); const router =…

om-webhook-response.json

{ "om_response_data":{ "redirect":"https://optinmonster.com" } }

om.WebFonts.init

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

om.Campaign.changeView.done

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

Revenue Attribution Curl

curl --request POST \ --url https://app.optinmonster.com/v2/revenue \ --header 'Content-Type: application/json' \ --header 'Origin: optinmonster.com' \ --header…

1 17 18 19 20 21 26