How do I add Google Analytics to my website?

Create a GA4 property at analytics.google.com, add a web data stream for your address, and copy the Google tag (or just the measurement ID, G-XXXXXXX). Paste the tag into the head of every page, or enter the ID in your site builder’s Google Analytics setting. In the EU and UK you also need a cookie consent banner that blocks the tag until visitors agree.

Create a free accountFree for up to three sites. No card needed.

Updated 1 December 2026

Step by step

  1. Go to analytics.google.com and sign in with a Google account.
  2. Admin → Create → Property. Name it and pick your time zone and currency.
  3. Choose Web as the platform, enter your address and create the stream.
  4. Copy the measurement ID (starts with G-) or open “View tag instructions” for the full tag.

Adding it by builder

BuilderWhere
WordPressSite Kit by Google plugin
ShopifyGoogle & YouTube app
Wix, SquarespaceMarketing or Analytics settings: paste the G- ID
Lovable, Bolt, v0Ask in the chat to add the Google tag
Own codePaste the tag right after the opening head tag

Google Analytics sets cookies. EU and UK law requires consent before they are set, so you need a consent banner and Google Consent Mode. Visitors who decline are not counted, or are estimated. If you’d rather skip that, a cookieless tool needs no banner for itself: see how to add analytics to your website.

Check that it works

Open your site, then Reports → Realtime in GA4. Your visit should appear within a minute.

How long until Google Analytics shows data?

Realtime shows visits within a minute. Standard reports can take 24 to 48 hours.

Can I use Google Analytics and another tool at the same time?

Yes. Many sites run a cookieless tool for everyone and GA4 for those who consent.

More guides

Ask your website. Get answers right away.

Free for 3 sites. No credit card, no cookies, no code to touch.

Or look around a live demo first, no account needed →