Step-by-Step Guide: How to Set Up Google Analytics on Your Website

Last updated:06/07/2025

Google Analytics is a powerful, free tool that helps you understand how visitors interact with your website. Whether you’re running a small business or a growing eCommerce store, tracking user behavior can help you make smarter marketing and design decisions.

Here’s how to set it up in just a few simple steps:


Step 1: Sign In or Create a Google Account

If you already have a Gmail or Google Workspace account, you can use it to access Google Analytics. If not, head over to accounts.google.com and create a new one.


Step 2: Go to Google Analytics

Visit analytics.google.com and click on “Start measuring”. You’ll be asked to set up an account name (this can be your business name).


Step 3: Set Up a Property

After naming your account, you’ll set up a property, which represents your website. Fill in your website name, time zone, and currency.

Choose GA4 (Google Analytics 4), which is the latest version.


Step 4: Add a Data Stream

Choose your platform (Web, iOS, Android). For most users, this will be “Web.”

Enter your website URL and stream name, then click “Create stream.”


Step 5: Install the Tracking Code

Once your data stream is created, Google will give you a tracking code (called a Global Site Tag or gtag.js).

Copy this code and paste it into the <head> section of every page on your website.

If you’re using WordPress:

  • Use a plugin like “Header & Footer Code Manager” or “Insert Headers and Footers”.

  • Paste the code into the header section.

If you’re using Elementor:

  • Navigate to Elementor > Custom Code, and paste the code to appear before </head>.


Step 6: Verify the Setup

Once installed, go back to your Google Analytics dashboard. Click on “Real-time” to check if your website is receiving data.

You can also use the Google Tag Assistant Chrome extension to verify that the tag is firing correctly.


Step 7: Set Goals and Explore Reports

Now that tracking is live, set up custom goals like form submissions, purchases, or button clicks. You can find all this under the “Events” and “Conversions” sections in GA4.

Explore key reports like:

  • User Acquisition

  • Traffic Sources

  • Page Views

  • Engagement Time


Final Tips

  • Give Google Analytics a few hours to start collecting meaningful data.

  • If you’re running ads, link your Google Ads and Google Analytics accounts.

  • Revisit your data weekly to understand what’s working and where to improve.


Need help setting it up? At webox digital, we can install and configure Google Analytics for you as part of any package or as an add-on service.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top