om-webhook-response.json
{ “om_response_data”:{ “redirect”:”https://optinmonster.com” } }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
{ “om_response_data”:{ “redirect”:”https://optinmonster.com” } }Continue reading
{ “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
document.addEventListener(‘om.Campaign.afterShow’, function(event) { if (event.detail.Campaign.id == ‘zjd3hxxogbfvmy2iz0rp’) // your slug { var campaignID = ‘om-‘+ event.detail.Campaign.id; var campaignHeight = document.getElementById(campaignID).offsetHeight; var fixedElement = document.getElementById(‘top’); //give ID for your fixed element OR document.querySelector(‘.yourClassName.yourSecondClassName’); fixedElement.style.top = campaignHeight + ‘px’; } }); document.addEventListener(‘om.Campaign.close’,…Continue reading
html div#om-{{id}}.CampaignType–floating { position: absolute !important; top: 0 !important; display: block !important; background: #0B8BBB !important; }Continue reading
document.addEventListener(‘om.Campaign.afterShow’, function(event) { if (event.detail.Campaign.id == ‘zjd3hxxogbfvmy2iz0rp’) // your slug { var campaignID = ‘om-‘+ event.detail.Campaign.id; var campaignHeight = document.getElementById(campaignID).offsetHeight; var fixedElement = document.getElementById(‘top’); //give ID for your fixed element OR document.querySelector(‘.yourClassName.yourSecondClassName’); fixedElement.style.top = campaignHeight + ‘px’; } }); document.addEventListener(‘om.Campaign.close’,…Continue reading
{ “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” }, “campaign”: { “id”: “fvb1cg7s3tkuhn9lqamx”, “title”: “Demo Campaitn” }, “meta”: { “input4”: “Hello Mars!”, “radio5”: “Third choice” }, “smart_tags”: { “day”:…Continue reading
document.addEventListener(‘om.Campaign.init.preload’, function(event) { var campaign = event.detail.Campaign; if ({slug} === campaign.id) { campaign.settings.preload = false; } });Continue reading
document.addEventListener(‘om.Campaign.init.preload’, function(event) { var campaign = event.detail.Campaign; campaign.settings.preload = false; });Continue reading
html .Campaign * { font-family: “Proxima Nova”, Helvetica, “Helvetica Neue”, Arial, sans-serif !important; }Continue reading
div#om-{{id}} * { font-family: “Proxima Nova”, Helvetica, “Helvetica Neue”, Arial, sans-serif !important; }Continue reading