antisol / Fake Google Analytics

// ==UserScript==
// @name        Fake Google Analytics
// @description Emulate Google Analytics so that poorly-written websites work.
// @copyright   2017, antisol (https://openuserjs.org/users/antisol)
// @author      antisol
// @updateURL https://openuserjs.org/meta/antisol/Fake_Google_Analytics.meta.js
// @license     BSD-3-Clause
// @namespace   fake._gaq
// @match       *://*/*
// @version     0.0.2
// @grant       none
// ==/UserScript==

var _gaq = {
  push: function () {
    var args = [];
    if (arguments)
      args = arguments[0];
    args = "'" + args.join("', '") + "'";
    console.log("fake._gaq.push(" + args + ")");
    return true;
  }
};
window._gaq = _gaq;
console.log("fake._gaq loaded.");