Add UJ button events to GA (#7340)
This commit is contained in:
parent
ac2f3cdc51
commit
7c69de29b1
|
@ -198,6 +198,10 @@ $( document ).ready(function() {
|
||||||
urlParamHash.set("path", type);
|
urlParamHash.set("path", type);
|
||||||
urlParamHash.set("persona", null);
|
urlParamHash.set("persona", null);
|
||||||
urlParamHash.set("level", null);
|
urlParamHash.set("level", null);
|
||||||
|
|
||||||
|
// record Google Analytics event
|
||||||
|
ga('send', 'event', 'user-journeys', 'click', 'path', type);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// (2) HTML behavior
|
// (2) HTML behavior
|
||||||
|
@ -215,6 +219,10 @@ $( document ).ready(function() {
|
||||||
if (!fromPageload) {
|
if (!fromPageload) {
|
||||||
var persona = targetElt.getAttribute('data-button');
|
var persona = targetElt.getAttribute('data-button');
|
||||||
urlParamHash.set('persona', persona);
|
urlParamHash.set('persona', persona);
|
||||||
|
|
||||||
|
// record Google Analytics event
|
||||||
|
ga('send', 'event', 'user-journeys', 'click', 'persona', persona);
|
||||||
|
|
||||||
}
|
}
|
||||||
// Use default level if not specified, in order to display the proper
|
// Use default level if not specified, in order to display the proper
|
||||||
// path-persona-level content
|
// path-persona-level content
|
||||||
|
@ -240,6 +248,10 @@ $( document ).ready(function() {
|
||||||
var level = targetElt.getAttribute('data-name');
|
var level = targetElt.getAttribute('data-name');
|
||||||
if (!fromPageload) {
|
if (!fromPageload) {
|
||||||
urlParamHash.set('level', level);
|
urlParamHash.set('level', level);
|
||||||
|
|
||||||
|
// record Google Analytics event
|
||||||
|
ga('send', 'event', 'user-journeys', 'click', 'level', level);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// (2) HTML behavior
|
// (2) HTML behavior
|
||||||
|
|
Loading…
Reference in New Issue