Step by step
- Go to analytics.google.com and sign in with a Google account.
- Admin → Create → Property. Name it and pick your time zone and currency.
- Choose Web as the platform, enter your address and create the stream.
- Copy the measurement ID (starts with G-) or open “View tag instructions” for the full tag.
Adding it by builder
| Builder | Where |
|---|---|
| WordPress | Site Kit by Google plugin |
| Shopify | Google & YouTube app |
| Wix, Squarespace | Marketing or Analytics settings: paste the G- ID |
| Lovable, Bolt, v0 | Ask in the chat to add the Google tag |
| Own code | Paste the tag right after the opening head tag |
Don’t forget consent
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.