Created
January 11, 2022 17:23
-
-
Save scips/8a2e637fcd3842bbb90b9fc973d00653 to your computer and use it in GitHub Desktop.
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
// ==UserScript== | |
// @name Google Analytics Checker | |
// @namespace https://rtbf.be/ | |
// @version 0.1 | |
// @description Modify the lang to track in Real Time on GA | |
// @author Sébastien Barbieri | |
// @match https://*.rtbf.be/ | |
// @icon https://www.google.com/s2/favicons?domain=userscript.zone | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
'use strict'; | |
window.dataLayer = window.dataLayer || []; | |
function store() { | |
window.dataLayer.push(arguments) | |
} | |
store('set','user_properties',{ | |
context: 'analytics_tracking' | |
}) | |
console.log("Tamper monkey script passed", window.dataLayer) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment