Implementation Guide: Setting Up Google Analytics 4 (GA4)

empty gray concrete road between trees during daytime

To grow a website, you must measure its performance. Google Analytics 4 (GA4) is the industry standard for tracking user behavior, but it requires a careful setup to provide accurate data.

Step 1: Create Your Account and Property

Visit the Google Analytics website and sign in. Create a "Property" representing your website. Ensure you select the correct time zone and currency, as these affect your reporting accuracy.

Step 2: Set Up a Data Stream

In GA4, data is collected through "Streams." Choose the "Web" platform and enter your URL. Once created, you will receive a Measurement ID (e.g., G-XXXXXXXXXX).

Step 3: Deployment Options

There are two main ways to install the code:

  1. Global Site Tag (gtag.js): Paste this snippet into the <head> section of every page.

  2. Google Tag Manager (GTM): Highly recommended. You install GTM once and manage all your tracking codes from a single dashboard.

Step 4: Define Your "Conversions"

Tell GA4 what a "win" looks like. Is it a newsletter sign-up or a purchase? Go to the "Events" section, find your desired action, and toggle the "Mark as conversion" switch.

Step 5: Testing and Real-Time View

Once installed, visit your website in an incognito window. Open your GA4 dashboard and go to the "Real-Time" report. If you see active users, you are successfully collecting data.

SALVATORE

FOLLOW US

Create a free website with Framer, the website builder loved by startups, designers and agencies.