Commit 089ecb88 authored by Leigh B Stoller's avatar Leigh B Stoller

Commit the other GA event stuff since I committed the stuff in

status.js by mistake. Harmless but I need to work in it.
parent 9cca2ea0
......@@ -111,9 +111,38 @@ window.APT_OPTIONS.gaAjaxEvent = function (route, method, code)
if (window.GOOGLEUA === undefined) {
return;
}
if (method == "GetInstanceStatus") {
return;
}
ga('send', 'event', 'ajax', route, method, code);
}
window.APT_OPTIONS.gaButtonEvent = function (event)
{
if (window.GOOGLEUA === undefined) {
return;
}
var target = event.target;
var type = event.type;
var id = $(target).attr('id');
var label = $(target).text();
if (id === undefined) {
id = label.trim();
}
console.info("button", type, id);
ga('send', 'event', 'button', type, id);
}
window.APT_OPTIONS.gaTabEvent = function (target)
{
if (window.GOOGLEUA === undefined) {
return;
}
var id = $(target).attr('href');
console.info("tab", id);
ga('send', 'event', 'tab', 'show', id);
}
APT_OPTIONS.CallServerMethod = function (url, route, method, args, callback)
{
// ignore url now.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment