Skip to content

Instantly share code, notes, and snippets.

View chavesm's full-sized avatar

Mark Chaves chavesm

View GitHub Profile
@lupin72
lupin72 / gist:91b7f744beb0478c805e9a26b504b753
Created June 2, 2018 15:33
How to block Monterinsights' Google Analytics Cookies with iubenda Cookie Solution for GDPR
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);
@webtoffee-git
webtoffee-git / functions.php
Last active December 9, 2022 14:10
Add more scripts to the default script blocker list using WebToffee GDPR Cookie Consent plugin
function scripts_list() {
$scripts = array(
array(
'id' => 'googletranslator',
'label' => 'GoogleTranslator',
'key' => array('translate.google.com/translate_a/element.js'),
'category' => 'analytics',
'status' => 'yes'
),
);
@chriscct7
chriscct7 / MonsterInsights-disable-all-tracking.php
Created April 6, 2020 16:39
MonsterInsights Disable Frontend Tracking Disable Frontend Tracking for all users.
<?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
*/
@selimslab
selimslab / get_gists.py
Last active December 23, 2023 15:52 — forked from leoloobeek/get_gists.py
Download all gists of a user
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"]])