OptinMonster Team
Member since March 2023
specific-element-custom-font.css
div#om-{{id}} .my-headline * { font-family: "Proxima Nova", Helvetica, "Helvetica Neue", Arial, sans-serif !important; }
om.Campaign.init.preload
document.addEventListener('om.Campaign.init.preload', function(event) { var campaign = event.detail.Campaign; campaign.settings.preload = false; });
om-nextjs.js
import { useEffect } from 'react'; import { useRouter } from 'next/router'; const OptinMonsterEmbed = ()…
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'); } );
Untitled Snippet
document.addEventListener('om.Campaign.load', function(event) { console.log(event.detail); } );
Dynamic Monsterlinks By Class Name
// Target by class name window.onload = function(){ const dynamicMonsterLinks = document.querySelectorAll("a.myClass"); dynamicMonsterLinks.forEach(dynamicMonsterLinks => dynamicMonsterLinks.href =…