305 Snippets
<10 Favourites
<10 Downloads

om-reactv4.js

// Using React Router V4 import React from "react"; import { withRouter } from "react-router"; class…

om-reactv3.js

// Using React Router V3 import { browserHistory } from 'react-router'; class App extends React.component {…

om-nextjs.js

import { useEffect } from 'react'; import { useRouter } from 'next/router'; const OptinMonsterEmbed = ()…

om.Html.images

document.addEventListener('om.Html.images', function(event) { console.log(event.detail.Html); console.log(event.detail.Campaign); } );

om.Optin.init

document.addEventListener('om.Optin.init', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); // This event is…

Revenue Attribution Exclude Campaign

document.addEventListener('om.Campaign.init', function(event) { if ('CAMPAIGN_ID' === event.detail.Campaign.id) { // replace CAMPAIGN_ID with the OptinMonster campaign's unique…

om-wp-plugin-load-in-head.php

// returning false will change the default location from footer to the head add_filter( 'optin_monster_api_loading_location', '__return_false'…

1 2 3 26