This file contains 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
function block_monsterinsights_cookies($attr) { | |
$attr['type'] = "text/plain"; | |
$attr['class'] = '_iub_cs_activate'; | |
return $attr; | |
} | |
add_filter('monsterinsights_tracking_analytics_script_attributes', 'block_monsterinsights_cookies', 10); |
This file contains 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
function scripts_list() { | |
$scripts = array( | |
array( | |
'id' => 'googletranslator', | |
'label' => 'GoogleTranslator', | |
'key' => array('translate.google.com/translate_a/element.js'), | |
'category' => 'analytics', | |
'status' => 'yes' | |
), | |
); |
This file contains 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 | |
/** | |
* Plugin Name: MonsterInsights Disable Frontend Tracking | |
* Description: Disable Frontend Tracking for all users. | |
* Version: 1.0.0 | |
* Author: MonsterInsights Support Team | |
* Author URI: https://www.monsterinsights.com | |
*/ | |
This file contains 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
import sys | |
from subprocess import call | |
import json | |
import os | |
import requests | |
def download_gists(gists: list): | |
for gist in gists: | |
call(["git", "clone", gist["git_pull_url"]]) |