OptinMonster Team
Member since March 2023
webhook code example updated
{ "lead": { "email": "[email protected]", "ipAddress": "1.2.3.4", "referrer": "https://optinmonster.com/", "timestamp": 1699985224, "privacyConsent": true, "firstName": "Archie", "lastName":…
om-nextjs14.js
'use client'; import { usePathname } from 'next/navigation'; import { useEffect, useState } from 'react'; export…
om-change-view.js
// Show the Yes/No view om{{id}}.changeView('yesno'); // Show the Optin view om{{id}}.changeView('optin'); // Show the Success…
And the Javascript to turn your HTML link into a MonsterLink v2
jQuery(document).ready(function($) { $('a[class*="campaign"]').addClass("manual-optin-trigger"); $('a[class*="campaign"]').attr("data-optin-slug", "pm6fnflhiocj7cge"); });
Webhook smart tags
{ "smart_tags": { "region": "Gujarat", "state": "Gujarat", "province": "Gujarat", "territory": "Gujarat", "region_code": "GJ", "country": "India", "country_code":…
om.Html.init
document.addEventListener('om.Html.init', function(event) { console.log(event.detail.Html); console.log(event.detail.Campaign); } );
om.PoweredBy.init
document.addEventListener('om.PoweredBy.init', function(event) { console.log(event.detail.PoweredBy); console.log(event.detail.Campaign); } );
om.Action.redirect
document.addEventListener('om.Action.redirect', function(event) { console.log("Redirect in progress..."); } );
Slide Reposition Top Left v2
html div#om-{{id}} { top: 0px !important; bottom: unset !important; right: auto !important; margin-left: 20px !important; transition:…