What Google Analytics Does and Why You Need It
Google Analytics is a free tool that tracks who visits your website, what pages they look at, how long they stay, and where they came from. Once you add it to your site, it collects this data automatically and shows you reports in a dashboard. You do not need to know code to set it up — the process takes about 10 minutes if you follow the steps in order.
The reason to add it: you cannot improve what you do not measure. Without Analytics, you are guessing about whether your website is working. With it, you can see which pages people actually read, which ones they leave immediately, and whether visitors are finding you through search, social media, or direct links. This information helps you decide what content to write next and where to focus your effort.
Google Analytics works by inserting a small tracking code into your website. Every time someone visits, that code sends information back to Google's servers. The data appears in your Analytics account, organized by day, week, or month. You can see it on any device by logging into your Google account.
Key Takeaways
- You need a Google account to set up Analytics, and your website must be live and accessible on the internet before you start.
- Google Analytics 4 is the current version — if you see instructions for "Universal Analytics," they are outdated and will not work the same way.
- The tracking code goes into your website's code or into your website builder's settings, depending on what platform you use to build your site.
- After you add the code, data takes 24 to 48 hours to appear in your Analytics dashboard, so do not expect to see numbers immediately.
- You can share your Analytics data with other people by inviting them to your account — you do not have to give them your password.
Create a Google Analytics Account
Go to google.com/analytics and click the blue "Start measuring" button. You will need to sign in with a Google account — if you do not have one, create one first at google.com. The account can be personal or a business account; either works.
After you sign in, Google will ask you to create a new property. A property is Analytics' word for one website. If you manage multiple websites, you create a separate property for each one. Enter your website's name (for example, "My Coffee Shop" or "Sarah's Blog"), then select your industry category from the dropdown list. This helps Google organize your data, but you can change it later if you pick wrong.
Next, enter your website's URL exactly as it appears in the address bar — include the https:// at the start. If your site is www.example.com, type that. If it is example.com without the www, type that instead. Google needs the exact match to track correctly.
Choose your country and timezone, then click "Create." Google will generate a tracking code — this is the piece you add to your website next.
Add the Tracking Code to Your Website
The tracking code is a snippet of text that looks like a jumble of letters and numbers. Google shows it to you after you create the property. You have two ways to add it: the easy way (if you use a website builder) or the manual way (if you have direct access to your site's code).
If you use a website builder like Wix, Squarespace, Shopify, or WordPress.com: Look for a settings section called "Analytics," "Integrations," or "Connected Services." Most builders have a field where you paste your Google Analytics tracking ID — a number that starts with "G-" followed by more numbers. You do not paste the entire code block, just that ID. Find it in your Analytics account by going to Admin (bottom left) > Property Settings, and copy the number next to "Measurement ID." Paste it into your builder's field and save. That is it.
If you have a self-hosted WordPress site or direct code access: You need to add the full tracking code to your site's header. The easiest way is to use a plugin. Search your WordPress plugins for "Google Site Kit" or "MonsterInsights," install it, and follow the setup wizard — it walks you through connecting your Analytics account and adds the code automatically. If you prefer to add the code manually, paste it into your theme's header.php file or use a custom code plugin. If you are not comfortable editing code, ask your web host or a developer to do it for you.
If you have a custom-built website or other platform: Ask your developer to add the tracking code to the <head> section of every page. Give them the full code block from your Analytics account. They should paste it once in a template or header file so it appears on all pages automatically.
Verify the Code Is Working
After you add the code, wait 24 to 48 hours for data to appear. Do not refresh your Analytics dashboard every hour — the system needs time to collect and process information. In the meantime, you can check whether the code is actually on your site.
Open your website in a web browser, then right-click anywhere on the page and select "View Page Source" (or "Inspect" in some browsers). Press Ctrl+F (or Cmd+F on Mac) and search for "gtag" or "G-" — if the tracking code is there, you will see it highlighted. If you see nothing, the code was not added correctly. Go back and check your website builder settings or ask your developer to verify the placement.
Once data starts appearing, you will see a green dot next to "Realtime" in your Analytics dashboard. This means the code is working and Analytics is receiving data right now. Click on "Realtime" to watch visitors on your site in real time — you will see their location, what page they are on, and how long they have been there.
Understand Your First Analytics Reports
When you first open your Analytics dashboard, you will see several cards showing basic information: total visitors, total sessions, average session duration, and bounce rate. A session is a visit — if someone comes to your site, leaves, and comes back later, that is two sessions. Bounce rate is the percentage of people who visit one page and leave without going to another page on your site.
Click on "Reports" in the left menu to see more detailed breakdowns. The "User acquisition" section shows where your visitors came from — organic search (Google), direct (typed your URL), social media, or referral links. The "Engagement" section shows which pages get the most views and how long people spend on each one. The "Monetization" section (if you have ads or sell things) shows revenue data.
Do not worry about understanding every metric right away. Start by looking at one report per week — for example, "Which pages get the most traffic?" or "Where are my visitors coming from?" As you get comfortable, explore other reports. Google has built-in guides in the interface that explain what each number means.
Invite Others to View Your Analytics
If you want a team member, business partner, or web developer to see your Analytics data, you do not have to share your Google password. Instead, invite them to your Analytics account with limited permissions.
Go to Admin (bottom left) > Account Access Management. Click the plus button to invite someone. Enter their email address and choose their role: Editor (can change settings and create reports), Analyst (can create reports but not change settings), or Viewer (can only see reports). Send the invitation. They will receive an email and can accept it to view your data.
You can remove someone's access at any time by going back to Account Access Management and clicking the X next to their name. This is safer than sharing a password because you control exactly what they can see and do.
Troubleshooting Common Problems
No data is appearing after 48 hours: The tracking code was not added correctly. Go back to your website builder or code and verify the code is actually there. Use the "View Page Source" method described above to check. If you still see nothing, delete the code and add it again, or contact your web host for help.
You see data for some pages but not others: The code was added to only some pages. If you use a website builder, the code should be in a global setting that applies to all pages automatically. If you use WordPress or custom code, make sure the code is in the header template so it appears on every page. If some pages are in a different folder or subdomain, they may need separate setup.
The tracking ID starts with "UA-" instead of "G-": You are looking at an old Universal Analytics property. Google stopped supporting Universal Analytics in July 2023. Create a new Google Analytics 4 property instead. Go to Admin > Create Property and follow the setup steps again.
You cannot find the tracking code in your Analytics account: Go to Admin (bottom left corner) > Property Settings. Look for "Measurement ID" — that is your tracking ID. If you need the full code block, click on "Data Streams" and select your website, then look for the code snippet option.
Frequently Asked Questions
Do I need to pay for Google Analytics?
No. Google Analytics is free for websites of any size. There is a paid version called Google Analytics 360 for very large companies, but the free version works for almost all websites and includes all the core features you need.
Will adding Analytics slow down my website?
No. The tracking code is small and runs in the background. It does not affect your site's speed or performance in any noticeable way.
Can I see data from before I added the tracking code?
No. Analytics only tracks data from the moment you add the code forward. It cannot see historical traffic from before the code was installed. This is why it is worth adding it as soon as your site goes live.
What if I have multiple websites — do I need separate Analytics accounts?
You can use one Google account to manage multiple Analytics properties. Each website gets its own property, but you log in once and see all of them in one dashboard. This is easier than managing separate accounts.
Can I delete my Analytics data?
Yes, but only future data. You cannot erase data that has already been collected. You can delete your entire property and start over, but that erases all historical data. If you just want to exclude certain traffic (like your own visits), you can set up filters in Admin > Data Filters.