Commit de84323f authored by Tim Zallmann's avatar Tim Zallmann

Merge branch '267345-fix-performance-of-snowplow-in-onbeforeunload' into 'master'

Reduce snowplow delay before unloading a page

See merge request gitlab-org/gitlab!45556
parents d1d688cf 49c87841
...@@ -12,6 +12,7 @@ const DEFAULT_SNOWPLOW_OPTIONS = { ...@@ -12,6 +12,7 @@ const DEFAULT_SNOWPLOW_OPTIONS = {
contexts: { webPage: true, performanceTiming: true }, contexts: { webPage: true, performanceTiming: true },
formTracking: false, formTracking: false,
linkClickTracking: false, linkClickTracking: false,
pageUnloadTimer: 10,
}; };
const createEventPayload = (el, { suffix = '' } = {}) => { const createEventPayload = (el, { suffix = '' } = {}) => {
......
...@@ -31,6 +31,7 @@ describe('Tracking', () => { ...@@ -31,6 +31,7 @@ describe('Tracking', () => {
contexts: { webPage: true, performanceTiming: true }, contexts: { webPage: true, performanceTiming: true },
formTracking: false, formTracking: false,
linkClickTracking: false, linkClickTracking: false,
pageUnloadTimer: 10,
}); });
}); });
}); });
......
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