Closed gregblass closed 8 years ago
Every turbolinks page load adds another analytics.js file to the page.
<script async="" src="//www.google-analytics.com/analytics.js"></script>
Navigate 10 times and 10 of those will be inserted. It makes sense because the analytics code snippet adds it to the top of the page.
Has anyone successfully dealt with this that could recommend a best practice?
Solution I came up with is to just put in the head tag instead of the body.
Every turbolinks page load adds another analytics.js file to the page.
Navigate 10 times and 10 of those will be inserted. It makes sense because the analytics code snippet adds it to the top of the page.
Has anyone successfully dealt with this that could recommend a best practice?