Skip to content

Instantly share code, notes, and snippets.

@scips
Created January 11, 2022 17:23
Show Gist options
  • Save scips/8a2e637fcd3842bbb90b9fc973d00653 to your computer and use it in GitHub Desktop.
Save scips/8a2e637fcd3842bbb90b9fc973d00653 to your computer and use it in GitHub Desktop.
// ==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