|
@@ -216,4 +216,23 @@ $(document).ready(function()
|
|
|
$(this).modal('show');
|
|
|
}
|
|
|
});
|
|
|
-});
|
|
|
+
|
|
|
+
|
|
|
+ /*** Tracking ***/
|
|
|
+ if(typeof cr_track_clicks !== 'undefined' && cr_track_clicks) {
|
|
|
+ $('a').on('click', function(){
|
|
|
+ gtag_data = {
|
|
|
+ "event_category": "Link",
|
|
|
+ "event_label": $(this).text().trim().substring(0, 30)
|
|
|
+ };
|
|
|
+ if ($(this).data('gtag-event_category')) {
|
|
|
+ gtag_data['event_category'] = $(this).data('gtag-event_category');
|
|
|
+ }
|
|
|
+ if ($(this).data('gtag-event_label')) {
|
|
|
+ gtag_data['event_label'] = $(this).data('gtag-event_label');
|
|
|
+ }
|
|
|
+ gtag('event', 'click', gtag_data);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+});
|