summaryrefslogtreecommitdiffstats
path: root/extensions/GoogleAnalytics
diff options
context:
space:
mode:
authorKohei Yoshino <kohei.yoshino@gmail.com>2018-07-27 16:03:40 +0200
committerDylan William Hardison <dylan@hardison.net>2018-07-27 16:03:40 +0200
commitacde857e4c2b250210a7dc7fe26ce6c382616c76 (patch)
treebb2cb6695769336a48ed6a762f4403474c212e68 /extensions/GoogleAnalytics
parent2f1edccbe351176eaf69a6042945f84a5417c0b7 (diff)
downloadbugzilla-acde857e4c2b250210a7dc7fe26ce6c382616c76.tar.gz
bugzilla-acde857e4c2b250210a7dc7fe26ce6c382616c76.tar.xz
Bug 1419636 - Make Google Analytics use beacon/XHR instead of img tag
Diffstat (limited to 'extensions/GoogleAnalytics')
-rw-r--r--extensions/GoogleAnalytics/web/js/analytics.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/GoogleAnalytics/web/js/analytics.js b/extensions/GoogleAnalytics/web/js/analytics.js
index 25f7d7527..86f1f2592 100644
--- a/extensions/GoogleAnalytics/web/js/analytics.js
+++ b/extensions/GoogleAnalytics/web/js/analytics.js
@@ -15,6 +15,7 @@ $(function() {
ga('set', 'anonymizeIp', true);
ga('set', 'location', meta.data('location'));
ga('set', 'title', meta.data('title'));
+ ga('set', 'transport', 'beacon');
// Track page view
ga('send', 'pageview');
}