mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-30 05:41:49 -08:00
GoogleAnalytics Plugin: Make sure we don't crash if the config tiddlers don't exist
This commit is contained in:
parent
95f565878e
commit
467bf17dd8
1 changed files with 2 additions and 2 deletions
|
|
@ -19,8 +19,8 @@ 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,"");
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue