Skip to content

Instantly share code, notes, and snippets.

@ericakfranz
Forked from thomasgriffin/gist:065903820d86889cbe85
Last active August 29, 2015 14:14
Show Gist options
  • Save ericakfranz/a718b9090a146b5327cc to your computer and use it in GitHub Desktop.
Save ericakfranz/a718b9090a146b5327cc to your computer and use it in GitHub Desktop.
Disable OptinMonster ajax requests to track optin impressions.
<?php // Do not include this opening tag.
add_filter( 'optin_monster_data', 'tgm_om_disable_tracking' );
function tgm_om_disable_tracking( $data ) {
$data['tracked'] = true;
return $data;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment