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 ID event.detail.Campaign.settings.revenueAttribution = false; } });Continue reading

Revenue Attribution Curl

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

Gravity Forms Sync Function

/** * Gravity Forms Field to CPT Mirror * Creates/updates a gf_field post for each form field * Works on: form save, JSON import, manual trigger, and form deletion */ defined( ‘ABSPATH’ ) || exit; // Add a manual test…Continue reading

Page Element Shortcodes

add_shortcode(‘page_title’, function () { global $wp_query; if( isset( $wp_query ) && (bool) $wp_query->is_posts_page ) { return ‘Updates’; } return get_the_title(); }); add_shortcode(‘page_excerpt’, function () { return do_shortcode(get_the_excerpt()); }); add_shortcode(‘page_image’, function ($atts) { $args = shortcode_atts(array(‘size’ => ‘large’), $atts); return get_the_post_thumbnail(get_the_ID(),…Continue reading

Property Analyzer Demo

// Add Property Analyzer Demo to WordPress function addPropertyAnalyzerDemo() { // Only add on homepage or specific pages if (!is_home() && !is_page(‘home’) && !is_front_page()) return; // CSS Styles echo ‘ ‘; // HTML Structure echo ‘ 🏠 See Our AI…Continue reading

Open graph

// Add this to your theme’s functions.php file or a custom plugin // Disable AIOSEO Open Graph if you’re keeping another plugin/theme for it add_filter(‘aioseo_disable_opengraph’, ‘__return_true’); // If your theme generates Open Graph tags and you want to disable them…Continue reading