Pages: Analytics code appears twice on live site

Hi all, I'm brand new to Cloudflare and Pages. I decided to throw up a quick test site with the analytics code. I'm using Astro (code below). The issue is that when I look at the source code on the live site, the analytics code appears twice. Any idea why that is? code: https://github.com/joshcesana/spotlight-test live site: https://spotlight-test.pages.dev/
GitHub
GitHub - joshcesana/spotlight-test
Contribute to joshcesana/spotlight-test development by creating an account on GitHub.
3 Replies
Chaika
Chaika6mo ago
In your Pages Project, under Manage, check to see if you have Web Analytics enabled there:
No description
Chaika
Chaika6mo ago
if you do, it's injecting it for you as well as your own app doing it
Josh Cesana
Josh CesanaOP6mo ago
Ah, got it! Yes it's enabled - I wasn't sure if I had to add the code or not. Good to know! Thank you so much.
Want results from more Discord servers?
Add your server