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 */