fix(tracking): add link click tracking to snowplow

This commit is contained in:
Benedikt Rötsch
2017-11-13 14:59:11 +01:00
committed by GitHub
parent 6f6cbc3e19
commit adf92b4c07

View File

@@ -29,7 +29,9 @@
}); });
snowplow('trackPageView'); snowplow('trackPageView');
snowplow('enableLinkClickTracking')
const space_id = decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*" + encodeURIComponent('space_id').replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1")) || null; const space_id = decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*" + encodeURIComponent('space_id').replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1")) || null;
snowplow('trackSelfDescribingEvent', { snowplow('trackSelfDescribingEvent', {