87 Snippets
<10 Favourites
<10 Downloads

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"); });

OM-revenue-attribution-curl.sh

curl --request POST \ --url https://app.optinmonster.com/v2/revenue \ --header 'Content-Type: application/json' \ --header 'Origin: optinmonster.com' \ --header…

Dynamic Monsterlinks by Id

// Target by ID window.onload = function(){ document.getElementById("someID").href="MONSTERLINK_URL"; }

zapier-lead-data.json

{ "lead": { "email": "[email protected]", "ipAddress": "1.2.3.4", "referrer": "https://optinmonster.com/", "timestamp": 1699985224, "privacyConsent": true, "firstName": "Archie", "lastName":…

om-nextjs14-layout.tsx

import '@/app/ui/global.css'; import {RouteChangeListener} from '@/app/route-change-listener.tsx'; export default function RootLayout({ children, }: { children: React.ReactNode; })…

om-startClose.js

// Close the OptinMonster campaign om{{id}}.startClose();

slide-bottom-left.css

html div#om-{{id}} { right: auto !important; margin-left: 20px !important; }

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…

1 3 4 5 6 7 8