From c7a8a7b61d613133a0504a42cb04a2c0f31164c9 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Fri, 21 Dec 2018 13:24:21 -0500 Subject: [PATCH] Revert "[REVERT ME] Turn up GA sampling to 100% for testing on staging" --- src/template.ejs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/template.ejs b/src/template.ejs index 69d3a26fd..dc46b019e 100644 --- a/src/template.ejs +++ b/src/template.ejs @@ -43,7 +43,9 @@ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); - ga('create', '<%- htmlWebpackPlugin.options.ga_tracker %>', 'auto'); + ga('create', '<%- htmlWebpackPlugin.options.ga_tracker %>', { + 'sampleRate': 10 + }); ga('send', 'pageview'); window.GA_ID = '<%- htmlWebpackPlugin.options.ga_tracker %>'; /* eslint-enable */