From bd8fe02c3bf7b10637c87b8ab03e52c039bfee29 Mon Sep 17 00:00:00 2001 From: Vinnie Freitas Date: Sun, 18 Mar 2018 18:14:02 -0700 Subject: [PATCH] WEB-1471:FIX: Use placeholder for GA Property ID --- ga-task-manager.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ga-task-manager.html b/ga-task-manager.html index b871397..0f5c830 100644 --- a/ga-task-manager.html +++ b/ga-task-manager.html @@ -6,18 +6,18 @@ (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'); - + // Anki Test Property - ga('create', 'UA-40941061-3', 'auto'); - + ga('create', 'GA-PROPERTY-ID', 'auto'); + // Require the plugin ga('require', 'gaTaskManager'); - + // Add a function to customTask ga('gaTaskManager:addFunctionToTask', 'customTask', 'logShinyString', function(model){ console.log("Look at my shiny new random customTask"); }); - + // Add a second function to customTask ga('gaTaskManager:addFunctionToTask', 'customTask', 'logShinyStringAgain', function(model){ console.log("Look at my shiny second random customTask which will be executed after the first!"); @@ -25,7 +25,7 @@ // Set Dimensions with a static string value ga('gaTaskManager:setCustomDimension', 1, 14) - + // Set Dimensions with function to return the value at time of execution ga('gaTaskManager:setCustomDimension', 2, function(){return Date.now() / 1000 | 0})