Setting up GA4
Step 1: Create a GA4 Property
- Go to Google Analytics.
- Click Admin (bottom left).
- Under Account, select an existing account or create a new one.
- Under Property, click Create Property.
- Enter a name (e.g., “My Website Analytics”).
- Select your reporting time zone and currency.
- Click Next, choose your industry category and business size.
- Click Next, select your business objectives, then click Create.
Step 2: Set Up a Data Stream
- Choose the platform:
- Web (for websites)
- iOS App or Android App (for mobile apps)
- If selecting Web, enter your website URL and name the stream.
- Enable Enhanced Measurement (optional but recommended).
- Click Create Stream.
Step 3: Install GA4 Tag on Your Website
Option 1: Using Google Tag Manager (Recommended)
- Go to Google Tag Manager (tagmanager.google.com).
- Select your account or create a new one.
- Click Add a new tag.
- Choose Google Analytics: GA4 Configuration.
- Enter your Measurement ID (found in your GA4 property under Admin > Data Streams).
- Set the trigger to All Pages.
- Click Save, then Submit & Publish.
Option 2: Adding GA4 Tag Manually
- Copy the Global Site Tag (gtag.js) from your GA4 Data Stream settings.
- Paste it inside the
<head>
section of your website’s HTML.
Step 4: Verify Data Collection
- Go to Google Analytics > Admin > Data Streams.
- Click your web stream and check if data is being received.
- Use Realtime Reports (in the left menu) to see live tracking.
Step 5: Set Up Events & Conversions
- GA4 tracks basic events automatically (pageviews, scrolls, etc.).
- To track specific events (e.g., purchases, form submissions):
- Use Google Tag Manager or GA4 Event Setup.
- Mark key events as Conversions in Admin > Events.
Step 6: Link Google Ads & Other Tools
- Go to Admin > Product Links to connect GA4 with Google Ads, Search Console, and BigQuery.
Step 7: Configure Reports & Custom Dashboards
- Explore Reports > Engagement > Events to analyze visitor behavior.
- Use Explore (Analysis Hub) for custom reporting.