Google Analytics on my site not working
jim-buildyard
HOBBYOP

a month ago

Hello,

I have set up google analytics on my site (https://buildyard.ai). But I don't get any traffic data on my google analytics dashboard. I have set up the FE correctly and it also has the correct VITE env var VITE_GA_MEASUREMENT_ID on the front end. Any tips ?

Thanks

Jim

$10 Bounty

2 Replies

Railway
BOT

a month ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway 27 days ago


a month ago

check the network tab when you visit your site to see if you have any extensions blocking it (like an Adblocker)


ernitinkirtee-png
FREE

a month ago

If Google Analytics is installed but shows no traffic, the problem is usually one of a few common issues. Here’s a checklist Jim can work through:

  1. Verify the Measurement ID
    • Make sure the VITE_GA_MEASUREMENT_ID matches the GA4 Measurement ID exactly (it should look like G-XXXXXXXXXX).
    • Confirm the production deployment is using the correct environment variable, not just local development.
  2. Check that the Analytics script is actually loaded
    • Open the deployed site.
    • Open Developer Tools → Network and filter for gtag or collect.
    • You should see requests to googletagmanager.com and google-analytics.com.
    • If they’re missing, the tracking code isn’t being initialized.
  3. Inspect the page source
    • Verify the generated HTML contains the Google Analytics script:

Welcome!

Sign in to your Railway account to join the conversation.

Loading...