TraceSignals

GA4 for Beginners: Setup Guide

📊
GA4 for Beginners: Setup Guide

What Is GA4 and Why It Matters for Your Store

Google Analytics 4 (GA4) is the newest version of Google’s analytics platform. Unlike the older Universal Analytics, GA4 uses an event‑based data model, which gives you more flexibility to track specific actions such as product views, add‑to‑cart clicks, and purchases. For Shopify and WordPress store owners who run paid ads on Google, Meta, or other networks, GA4 provides the data needed to measure return on ad spend (ROAS), optimize campaigns, and make smarter budgeting decisions. If you set up GA4 correctly, you’ll see a single, unified view of customer behavior across web and app, and you’ll be able to feed that insight directly into Google Ads and Meta’s advertising dashboards.

Step 1: Create a GA4 Property in Google Analytics

  1. Log in to Google Analytics. Use the same Google account you use for Google Ads.
  2. Click “Admin” in the lower‑left corner. In the “Account” column, select the account that will contain your store’s data.
  3. In the “Property” column, choose “Create Property.” Enter a property name (e.g., “MyStore GA4”), select the reporting time zone, and choose the correct currency.
  4. Choose “Web” as the data stream type. You’ll be asked for your website URL and stream name.
  5. Copy the Measurement ID. It looks like “G‑XXXXXXXXXX.” You’ll need this ID later when you install the tag on your site.

Step 2: Install the GA4 Tracking Code on Your Shopify or WordPress Site

  • Shopify: From your Shopify admin, go to Online Store → Preferences. Paste the GA4 tag (the script that contains your Measurement ID) into the “Google Analytics” field. If you prefer a tag manager, add the GA4 configuration tag to your Google Tag Manager container and publish.
  • WordPress (non‑builder): Install the free TraceSignals Conversion Tracking plugin. After activation, navigate to Settings → TraceSignals, paste your Measurement ID, and enable the “GA4 Browser Pixel” option. The plugin automatically injects the correct script on every page.
  • WordPress (builder or custom theme): Open the header.php file (or use a header/footer plugin) and paste the GA4 script just before the closing  tag. Ensure the script appears on all pages by testing a few URLs.
  • Verify the installation: Use the GA4 “Realtime” report. Open your store in a private browser window, and you should see at least one active user within seconds.

Step 3: Set Up Conversion Events for Paid Advertising

  • Identify key actions. For most e‑commerce stores the most valuable conversions are “Add to Cart,” “Begin Checkout,” and “Purchase.” You may also track “Sign‑up” or “Newsletter Subscribe” if those are core to your funnel.
  • Create custom events in GA4. In the GA4 UI, go to “Configure” → “Events” → “Create event.” Use the “Modify event” template, give the new event a name (e.g., “purchase_complete”), and set the matching conditions based on the parameters sent from your site (usually “event_name = purchase”).
  • Mark events as conversions. After the custom event appears in the “Events” list, toggle the “Mark as conversion” switch. GA4 will now count each occurrence in the “Conversions” report.
  • Link GA4 to Google Ads. In GA4, go to “Admin” → “Product Links” → “Google Ads Linking.” Select the appropriate Ads account and enable auto‑tagging. This step ensures that GA4 can attribute conversions to specific ad clicks.
  • Import conversions into Meta (Meta Pixel). If you also run Meta ads, create a Meta Pixel in Business Manager, then add the pixel ID to the TraceSignals plugin settings. The plugin forwards GA4 conversion events to the Meta Pixel, allowing you to optimize Facebook and Instagram campaigns without additional code.

Step 4: Verify Data Accuracy and Use GA4 Reports to Optimize Campaigns

After the tracking code and conversion events are live, spend the first 48 hours confirming that data flows correctly. Open the GA4 “Events” report and look for the events you created; each should show a non‑zero count. Then open the “Conversions” report to ensure that purchases or sign‑ups are recorded. If numbers do not match your store’s native reports, double‑check the event parameters and the placement of the script.

Once you trust the data, use GA4’s built‑in reports to improve ad performance:

  • Acquisition → User acquisition. See which traffic sources (Google Ads, Meta, organic search) bring the most new users.
  • Engagement → Events. Identify drop‑off points by comparing “Add to Cart” versus “Begin Checkout” counts.
  • Monetization → E‑commerce purchases. Review average order value and product‑level revenue.

Apply the insights by adjusting bids, refining audience targeting, or testing new ad creatives. Because GA4 ties each conversion back to the original click ID, you can import exact conversion values into Google Ads for data‑driven bidding strategies such as Target ROAS.

Finally, schedule a monthly audit. Export the “Conversions” data to a spreadsheet, compare it with your Shopify or WooCommerce order reports, and note any discrepancies. Regular audits keep your tracking reliable and ensure you are not overspending on under‑performing ads.

Frequently Asked Questions

How do I create a GA4 property and link it to my website?

Log in to Google Analytics, click ‘Create Property’, select ‘Web’, and enter your site’s URL. After the property is created, copy the Measurement ID and paste it into the Global Site Tag (gtag.js) code snippet placed in the <head> of every page.

What is the difference between a data stream and a property in GA4?

A property is the top‑level container for all data from a business, while a data stream is a specific source of data—web, iOS, or Android—inside that property. Each stream has its own Measurement ID and collects events independently.

Do I need to set up events manually in GA4, or are they tracked automatically?

GA4 automatically tracks several enhanced measurement events such as page_view, scroll, outbound clicks, site search, and video engagement. For any custom interactions, you must configure additional events using the gtag.js API, Google Tag Manager, or the GA4 UI.

How can I verify that GA4 is collecting data correctly after setup?

Open the GA4 real‑time report and navigate your site to see live activity appear within seconds. Additionally, use the DebugView in the GA4 UI or the Tag Assistant browser extension to confirm that hits are being sent without errors.

Related Articles