TraceSignals

GA4 Basics

📊
GA4 Basics

What Is GA4 and Why It Matters for Your Store

Google Analytics 4 (GA4) is the newest version of Google’s analytics platform. It replaces Universal Analytics and introduces an event‑based data model that tracks every interaction as a flexible event rather than a fixed “session.” For Shopify and WordPress store owners who run paid ads, GA4 provides a clearer picture of how visitors become customers, how ads perform, and which marketing channels drive the highest return on ad spend.

Key benefits of GA4 for e‑commerce sites include:

  • Cross‑platform tracking that combines web and app data in a single property.
  • Enhanced conversion modeling that fills gaps when cookies are blocked.
  • Built‑in predictive insights, such as purchase probability and churn risk.
  • Deeper integration with Google Ads, allowing automatic audience creation for remarketing.

Creating a GA4 Property for Your Shopify or WordPress Store

Before you can collect any data, you need a GA4 property linked to your Google account. Follow these steps to set up the property correctly:

  1. Sign in to Google Analytics at analytics.google.com.
  2. Click the “Admin” gear icon in the lower‑left corner.
  3. In the “Account” column, select the account that will own the property, or create a new one.
  4. In the “Property” column, click “Create Property.”
  5. Enter a name that matches your store (e.g., “MyShop GA4”), select your reporting time zone, and choose the appropriate currency.
  6. Under “Advanced options,” toggle “Create a Universal Analytics property” to off if you only need GA4.
  7. Click “Next” and answer the business‑size questions, then click “Create.”
  8. Copy the “Measurement ID” that looks like G‑XXXXXXXXXX – you will need this for the tag installation.

Installing the GA4 Tag on Your Store

GA4 data collection starts with a tag placed on every page of your site. The tag can be added manually, via Google Tag Manager, or through a dedicated plugin. For WordPress stores, the easiest method is the TraceSignals Conversion Tracking plugin, which injects the GA4 tag along with Google Ads and Meta Pixel code without requiring custom coding.

If you prefer a manual approach or are using Shopify, follow these steps:

  1. Log in to your Shopify admin or WordPress dashboard.
  2. Navigate to the theme or theme editor where you can edit the <head> section.
  3. Paste the following script, replacing G-XXXXXXXXXX with your Measurement ID:
  4. <script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
  5. <script>window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-XXXXXXXXXX');</script>
  6. Save the changes and clear any site cache.
  7. Use the GA4 “Realtime” report to confirm that page views are being recorded.

For WordPress sites that already use the TraceSignals plugin, simply enable the “GA4” toggle in the plugin settings and enter your Measurement ID. The plugin will handle script placement, event wiring, and cross‑domain tracking automatically.

Key GA4 Reports Every Paid‑Ads Store Owner Should Monitor

Once data flows into GA4, focus on reports that directly relate to ad performance and revenue. The following reports give you actionable insight without the need for complex customizations:

  • Acquisition > User acquisition: Shows which traffic source (Google Ads, Meta, organic search, etc.) brings the most new users.
  • Acquisition > Traffic acquisition: Breaks down sessions by medium, campaign, and source/medium pair, allowing you to see cost‑per‑click (CPC) impact.
  • Engagement > Events: Lists all tracked events such as “add_to_cart,” “begin_checkout,” and “purchase.” Verify that your conversion events fire correctly on each step of the funnel.
  • Monetization > E‑commerce purchases: Displays total revenue, average order value, and items sold, broken down by source/medium.
  • Advertising > Conversions: Connects Google Ads clicks to on‑site conversions, enabling automatic bidding strategies like “Target ROAS.”

To access a report, click the left‑hand navigation menu in GA4, expand the relevant section, and select the desired report. Use the date picker at the top to compare week‑over‑week or month‑over‑month performance.

Tips for Accurate Conversion Tracking and Better ROI

Precise conversion tracking is the foundation of any paid‑ads strategy. Follow these best practices to ensure GA4 records every sale, lead, or signup correctly:

  • Define conversion events clearly. In GA4, go to “Configure > Events,” then click “Create event” to rename or modify raw events (e.g., rename “purchase” to “order_complete”). Mark the final event as a conversion.
  • Use enhanced e‑commerce data. If you run Shopify, enable “Enhanced Ecommerce” in the GA4 settings or use the TraceSignals plugin, which automatically pushes product‑level details like SKU, price, and quantity.
  • Validate event parameters. In the “DebugView” (found under “Configure”), trigger a test purchase and confirm that parameters such as value, currency, and transaction_id are present.
  • Set up cross‑domain tracking. If you use a separate checkout domain (e.g., checkout.myshop.com), add the domain under “Data Streams > Web > More tagging settings > List unwanted referrals” and configure the same Measurement ID on both domains.
  • Link Google Ads and GA4. In GA4, navigate to “Admin > Product Links > Google Ads,” then select the Ads account to import conversions automatically.
  • Regularly audit data. Schedule a monthly review of the “Events” and “Conversions” reports to catch missing tags or duplicate events before they affect budgeting decisions.

By implementing these steps, you can trust the numbers that drive your ad spend, optimize bidding strategies, and ultimately increase the return on investment for your paid campaigns.

Frequently Asked Questions

What is Google Analytics 4 and how does it differ from Universal Analytics?

Google Analytics 4 (GA4) is Google’s latest analytics platform that uses event‑based data collection instead of session‑based tracking. Unlike Universal Analytics, GA4 provides cross‑platform reporting, built‑in predictive metrics, and a privacy‑focused data model.

How do I set up a GA4 property for my website?

Create a new GA4 property in the Google Analytics admin console, then add the generated Measurement ID to your site using the Global Site Tag (gtag.js) or via a tag manager. Verify data flow in the Realtime report within 24 hours of implementation.

What are the core events in GA4 and do I need to configure them manually?

GA4 automatically tracks enhanced measurement events such as page_view, scroll, outbound clicks, site search, and video engagement. Additional custom events can be defined in the UI or via gtag.js, but the core events require no manual setup.

Can I import historical data from Universal Analytics into GA4?

No, GA4 does not support importing past Universal Analytics data; the two properties run independently. To retain historical insights, keep your Universal Analytics property active while using GA4 for new data collection.

Related Articles