Archives: Snippets
Style ALL Placeholder Text on Your Website
::-webkit-input-placeholder { color: #333 !important; } /* Chrome/Opera/Safari */ ::-moz-placeholder { color: #333 !important; } /* firefox 19+ */ :-ms-input-placeholder { color: #333 !important; } /* ie */ :-moz-placeholder { color: #333 !important; } /*below firefox 19 */Continue reading
Style Just OptinMonster Campaign Placeholders
html div#om-{{id}} ::-webkit-input-placeholder { color: #333 !important; } /* Chrome/Opera/Safari */ html div#om-{{id}} ::-moz-placeholder { color: #333 !important; } /* firefox 19+ */ html div#om-{{id}} :-ms-input-placeholder { color: #333 !important; } /* ie */ html div#om-{{id}} :-moz-placeholder { color: #333…Continue reading
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 ID event.detail.Campaign.settings.revenueAttribution = false; } });Continue reading
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 ‘X-OptinMonster-ApiKey: **************************************’ \ –data ‘{ “type”: “sale”, “value”: “348.00”, “currency”: “USD”, “test”: false, “device”: “mobile”, “transaction_id”: “372626473”, “campaigns”: { “ep4eiifn08pqw838zebq”: “click” } }’Continue reading