#

Google Analytics Logo

Google Analytics

Analyze your website data with the world's leading analytics platform.

SIGN UP

Measure your website traffic and evaluate the performance of your marketing, content, products, and more with Google Analytics.

# Prerequisites

# Installation

  1. Go to Google Analytics and login to your account. If you don't have one, create a new account.

  2. Create a property for your website by following the steps provided.

Analytics create a property

  1. Set up your web stream.

Analytics web stream

  1. Click Create & continue.

  2. Obtain your Google Analytics Measurement ID (for GA4, it starts with "G-") by clicking on your property.

Analytics Measurement ID

  1. Go to Google Tag Manager and log in.

  2. Select the container for the website where you want to add Google Analytics.

  3. Click on "Tags" in the left sidebar.

  4. Then, click the New button to create a new tag.

Google Tag Manager New Tag

  1. Name your tag something descriptive, like "GA4 Configuration".

  2. Choose Tag Configuration and select Google Tag.

  3. Paste your Google Analytics Measurement ID (e.g., G-XXXXXXX) into the appropriate field.

Google Tag Manager New Tag ID

  1. Click on "Triggering". Choose "All Pages" as the trigger to fire this tag on every page of your website.

Google Tag Manager All Pages Trigger

  1. Click Save.

  2. Use the "Preview" mode in Google Tag Manager to check if the tags are firing correctly, or use the Google Tag Assistant extension in your browser to verify the installation.

Google Tag Manager Preview

  1. Click Publish.
  1. Copy the code snippet provided.

Analytics code snippet

  1. Paste it on every page of your website, immediately after the <head> element.