htmk to monsterlink

jQuery(document).ready(function($) { $(‘a[href=”#”]’).addClass(“manual-optin-trigger”); $(‘a[href=”#”]’).attr(“data-optin-slug”, “pm6fnflhiocj7cge”); });Continue reading

dynamic-monsterlinks-by-class-name.js

// Target by class name window.onload = function(){ const dynamicMonsterLinks = document.querySelectorAll(“a.myClass”); dynamicMonsterLinks.forEach(dynamicMonsterLinks => dynamicMonsterLinks.href = “MONSTERLINK_URL”); }Continue reading

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 ID event.detail.Campaign.settings.revenueAttribution = false; } });Continue reading

om-change-view.js

// Show the Yes/No view om{{id}}.changeView(‘yesno’); // Show the Optin view om{{id}}.changeView(‘optin’); // Show the Success view om{{id}}.changeView(‘success’);Continue reading

om-webhook-example-v1.0.0.json

{ “lead”: { “email”: “[email protected]”, “ipAddress”: “1.2.3.4”, “referrer”: “https://optinmonster.com/”, “timestamp”: 1699985224, “firstName”: “Archie”, “lastName”: “Monster”, “phone”: “888-888-8888” }, “lead_options”: { “list”: “List A”, “tags”: [ “Tag A” ], “data”: { “custom_data”: “Custom Data” } }, “campaign”: { “id”: “fvb1cg7s3tkuhn9lqamx”, “title”:…Continue reading

om-webhook-example-v1.0.1.json

{ “lead”: { “email”: “[email protected]”, “ipAddress”: “1.2.3.4”, “referrer”: “https://optinmonster.com/”, “timestamp”: 1699985224, “privacyConsent”: true, “firstName”: “Archie”, “lastName”: “Monster”, “phone”: “888-888-8888” }, “lead_options”: { “list”: “List A”, “tags”: [ “Tag A” ], “data”: { “custom_data”: “Custom Data” } }, “campaign”: { “id”:…Continue reading