Skip to content

Commit

Permalink
WEB-1471:FIX: Use placeholder for GA Property ID
Browse files Browse the repository at this point in the history
  • Loading branch information
snipebin committed Mar 19, 2018
1 parent d097be9 commit bd8fe02
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ga-task-manager.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@
(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!");
});

// 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})

Expand Down

0 comments on commit bd8fe02

Please sign in to comment.