Forked from thomasgriffin/gist:065903820d86889cbe85
Last active
August 29, 2015 14:14
-
-
Save ericakfranz/a718b9090a146b5327cc to your computer and use it in GitHub Desktop.
Disable OptinMonster ajax requests to track optin impressions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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