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

gistfile1.txt

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

floating bar css

html div#om-{{id}}.CampaignType–floating { position: absolute !important; top: 0 !important; display: block !important; background: #0B8BBB !important; }Continue reading

om.Campaign.afterShow

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

zapier-lead-data.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” }, “campaign”: { “id”: “fvb1cg7s3tkuhn9lqamx”, “title”: “Demo Campaitn” }, “meta”: { “input4”: “Hello Mars!”, “radio5”: “Third choice” }, “smart_tags”: { “day”:…Continue reading

om.Campaign.init.preload2

document.addEventListener(‘om.Campaign.init.preload’, function(event) { var campaign = event.detail.Campaign; if ({slug} === campaign.id) { campaign.settings.preload = false; } });Continue reading