Accidentally removed tracking from static pages by moving the pageview call into the SPA

This commit is contained in:
Tom Moor
2018-02-11 10:40:28 -08:00
parent e4459691cd
commit 4d97e1aa2a
2 changed files with 2 additions and 2 deletions

View File

@ -10,6 +10,8 @@ function Analytics() {
dangerouslySetInnerHTML={{
__html: `
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', ${process.env.GOOGLE_ANALYTICS_ID}, 'auto');
ga('send', 'pageview');
`,
}}
/>