Skip to content

Commit f14696d

Browse files
committed
Added test of global nav analytics tracking
1 parent 8235b99 commit f14696d

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

themes/openstack/javascript/navigation.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,17 @@ jQuery(window).on("resize",function () {
8181
if (jQuery(window).width() > 767) {
8282
$("li").removeClass("open");
8383
}
84+
});
85+
86+
// Global Nav UI Tracking
87+
88+
jQuery(document).ready(function($) {
89+
$(document).on("click", ".project___1BAp9", function(){
90+
var href = $(this).attr('href');
91+
ga('send', 'event', {
92+
eventCategory: 'Global UI Navigation',
93+
eventAction: 'Click',
94+
eventLabel: href
95+
});
96+
});
8497
});

0 commit comments

Comments
 (0)