OptinMonster Team
Member since March 2023
om external links monsterlink uniqe id
(function(window, document) { // Your campaign's UNIQUE ID var campaignSlug = 'pcoamlfqsv7jeervep0b'; // ... the rest…
Remove Specific Campaign Based on the Referral URL-v1
document.addEventListener('om.Campaign.startShow', function(event) { if(document.referrer.search.indexOf('google.com') > 0) { // replace with the specific referral domain var optinCampaign…
om-custom-smart-tag-all-query-args.js
const queryString = window.location.search; // capture all query args document.addEventListener('om.Dtr.init', function(event) { // use this event…
om.Html.images
document.addEventListener('om.Html.images', function(event) { console.log(event.detail.Html); console.log(event.detail.Campaign); } );
om.Optin.init
document.addEventListener('om.Optin.init', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); // This event is…
Revenue Attribution Exclude Campaign
document.addEventListener('om.Campaign.init', function(event) { if ('CAMPAIGN_ID' === event.detail.Campaign.id) { // replace CAMPAIGN_ID with the OptinMonster campaign's unique…
om-wp-plugin-load-in-head.php
// returning false will change the default location from footer to the head add_filter( 'optin_monster_api_loading_location', '__return_false'…