Search results for: Smart Tags
Webhook smart tags
{ "smart_tags": { "region": "Gujarat", "state": "Gujarat", "province": "Gujarat", "territory": "Gujarat", "region_code": "GJ", "country": "India", "country_code":…
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-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":…
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":…
om.Campaign.load , capture query args
document.addEventListener('om.Campaign.load', function(event) { const queryString = window.location.search; // capture all query args // Registers a custom…
om.Dtr.init
document.addEventListener('om.Dtr.init', function(event) { console.log(event.detail.Dtr); console.log(event.detail.Campaign); // Registers a custom `name` smart tag. event.detail.Dtr.setCustomVariable('name', 'Thomas'); } );
custom smart tag full page example
Page Title
om.Dtr.init.js
document.addEventListener('om.Dtr.init', function(event) { console.log(event.detail.Dtr); console.log(event.detail.Campaign); // Registers a custom `name` smart tag. event.detail.Dtr.setCustomVariable('name', 'Thomas'); } );
Custom Separator
This code creates a custom separator smart tag for OptinMonster, which determines whether to use ?…
Storing User's Uncached IP Address in Hidden Field
This snippet lets you capture and store the user's IP address in the Hidden field. It…
Remove Multiple Fields From {all_fields} in Notifications
This code snippet removes multiple fields from your email notifications while still using the {all_fields} smart…
To Remove a Single Field From {all_fields}
This code snippet removes a single field from your email notifications while still using the {all_fields}…
zapier-lead-data.json
{ "lead": { "email": "[email protected]", "ipAddress": "1.2.3.4", "referrer": "https://optinmonster.com/", "timestamp": 1699985224, "privacyConsent": true, "firstName": "Archie", "lastName":…