/*\title: $:/plugins/tiddlywiki/googleanalytics/googleanalytics.jstype: application/javascriptmodule-type: startupRuns Google Analytics with the account number in the tiddler `$:/GoogleAnalyticsAccount` and the domain name in `$:/GoogleAnalyticsDomain`\*/(function(){
/*jslint node: true, browser: true *//*global $tw: false */"use strict";
// Export name and synchronous statusexports.name = "google-analytics";exports.platforms = ["browser"];exports.synchronous = true;
exports.startup = function() { // getting parameters var GA_ACCOUNT = $tw.wiki.getTiddlerText("$:/GoogleAnalyticsAccount","").replace(/\n/g,""), GA_DOMAIN = $tw.wiki.getTiddlerText("$:/GoogleAnalyticsDomain","").replace(/\n/g,""); if (GA_DOMAIN == "" || GA_DOMAIN == undefined) GA_DOMAIN = "auto";
// using ga "isogram" function (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', GA_ACCOUNT, GA_DOMAIN); ga('send', 'pageview');};
})();// JavaScript Document/*\title: $:/plugins/tiddlywiki/googleanalytics/googleanalytics.jstype: application/javascriptmodule-type: startupRuns Google Analytics with the account number in the tiddler `$:/GoogleAnalyticsAccount` and the domain name in `$:/GoogleAnalyticsDomain`\*/(function(){
/*jslint node: true, browser: true *//*global $tw: false */"use strict";
// Export name and synchronous statusexports.name = "google-analytics";exports.platforms = ["browser"];exports.synchronous = true;
exports.startup = function() { // getting parameters var GA_ACCOUNT = $tw.wiki.getTiddlerText("$:/GoogleAnalyticsAccount","").replace(/\n/g,""), GO_ACCOUNT = $tw.wiki.getTiddlerText("$:/GoogleOptimizeAccount","").replace(/\n/g,""), GA_DOMAIN = $tw.wiki.getTiddlerText("$:/GoogleAnalyticsDomain","").replace(/\n/g,""); if (GA_DOMAIN == "" || GA_DOMAIN == undefined) GA_DOMAIN = "auto";
// using ga "isogram" function (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', GA_ACCOUNT, GA_DOMAIN); ga('send', 'pageview'); ga('require', GO_ACCOUNT);};
})();// JavaScript Document--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7a749a53-eba6-4d31-b6f8-25c3842e31f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.