There was an error while loading. Please reload this page.
1 parent 92168e4 commit d6d7dc8Copy full SHA for d6d7dc8
1 file changed
src/js/tracker.js
@@ -237,10 +237,6 @@
237
// Context to be added to every event
238
commonContexts = [];
239
240
- if (autoContexts.performanceTiming) {
241
- commonContexts.push(getPerformanceTimingContext());
242
- }
243
-
244
if (autoContexts.gaCookies) {
245
commonContexts.push(getGaCookiesContext());
246
}
@@ -640,7 +636,11 @@
640
636
* @return userContexts combined with commonContexts
641
637
*/
642
638
function addCommonContexts(userContexts) {
643
- return commonContexts.concat(userContexts || []);
639
+ var combinedContexts = commonContexts.concat(userContexts || []);
+ if (autoContexts.performanceTiming) {
+ combinedContexts.push(getPerformanceTimingContext());
+ }
+ return combinedContexts;
644
645
646
/**
0 commit comments