How to Connect Google Analytics 4

Cody Schneider9 min read

Setting up Google Analytics 4 is the first step toward understanding your website's performance, but its real power is unlocked when you connect it across your digital ecosystem. This guide provides a clear roadmap for connecting GA4, from the initial website setup to integrating it with essential tools like Google Ads and Search Console for a complete view of your data.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Why Is Connecting Google Analytics 4 So Important?

In the past, web analytics often felt siloed. You had your website data in one place, your advertising data in another, and your search performance metrics somewhere else entirely. Getting them to talk to each other required hours of downloading spreadsheets and manually stitching reports together. The whole process was slow, clunky, and prone to error.

Google Analytics 4 is designed to fix this by acting as a central hub for your user journey data. The platform's event-based model tracks user interactions - not just pageviews - providing a much richer understanding of how people engage with your business online. When you properly connect GA4 to your website and other marketing platforms, you break down those data silos. This integration allows you to:

  • See the full user journey: Understand how a user discovers your brand through organic search, engages with a social media ad, and finally makes a purchase on your website.
  • Improve marketing ROI: By connecting GA4 to Google Ads, you can see which specific campaigns, ad groups, and keywords are driving valuable user actions (like sales or lead form submissions), not just clicks.
  • Uncover deep SEO insights: Linking with Google Search Console shows you which search queries are bringing traffic to specific pages and how those users behave once they arrive.
  • Build powerful, bespoke reports: Connecting to tools like Looker Studio lets you visualize your GA4 data alongside information from other sources, creating custom marketing dashboards that answer your specific business questions.

In short, connecting GA4 isn't just a technical setup step, it's the foundation for building a data-driven strategy where every piece of marketing works together.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Step 1: Get Your GA4 Measurement ID

Before you can connect Google Analytics 4 to anything, you need its unique identifier: the Measurement ID. This ID tells your website (and other tools) which specific GA4 property to send data to. It always starts with a "G-" and is followed by a series of letters and numbers (e.g., G-XXXXXXXXXX).

If you already have a GA4 property, here’s how to quickly find your Measurement ID:

  1. Log in to your Google Analytics account.
  2. Click on the Admin gear icon in the bottom-left corner.
  3. Ensure the correct Account and GA4 Property are selected in the top columns.
  4. In the Property column, click on Data Streams.
  5. You'll see a list of your data streams (typically one for your website). Click on yours.
  6. A panel will slide out from the right showing all the stream details. Your Measurement ID is clearly displayed in the top-right corner. You can click the copy icon next to it to grab it for the next steps.

Don't have a Google Analytics 4 property yet? No problem. Creating one is straightforward. From the Admin screen, click the blue "Create Property" button and follow the setup wizard. It will ask for your property name, reporting time zone, and currency. On the next step, create your web data stream by entering your website URL. Once you create the stream, you'll be taken directly to the details panel where your Measurement ID is waiting for you.

Step 2: Connect GA4 to Your Website

With your "G-" Measurement ID copied, it's time to connect GA4 to your website so it can start collecting data. The method you use will depend on your website's platform and your technical comfort level. Here are the three most common ways to do it.

Method 1: The Easy Way (Content Management Systems and Website Builders)

If you use a popular platform like WordPress, Shopify, Wix, or Squarespace, this is usually the simplest route. Most of these services have built-in integrations or recommended plugins that make installation a copy-and-paste job.

For WordPress:

You can use a plugin to handle the heavy lifting. Popular options like MonsterInsights or Google’s own Site Kit are great choices. After installing and activating the plugin, you'll be guided through a simple setup process where you authorize access to your Google account and select your GA4 property. The plugin will automatically add the tracking code to your entire site.

For Shopify:

Shopify has native integration with Google Analytics. This is the recommended approach:

  1. From your Shopify admin, go to Online Store > Preferences.
  2. Scroll down to the "Google Analytics" section.
  3. Paste your Measurement ID ("G-...") into the field.
  4. Click Save.

Shopify will automatically add the necessary code and start tracking standard e-commerce events for you.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Method 2: The Recommended Way (Google Tag Manager)

Google Tag Manager (GTM) is a free tool that lets you manage and deploy all of your marketing tags (like the GA4 tag, Facebook Pixel, etc.) from one central dashboard without having to touch your website’s code every time. While it has a slight learning curve, it’s the most flexible and future-proof method.

If you don’t have GTM installed yet, start there. It involves creating a GTM account and adding two snippets of code to your website. Once that's done, here’s how to connect GA4:

  1. In your GTM container, navigate to Tags and click New.
  2. Give your tag a descriptive name, like "GA4 Configuration."
  3. Click on Tag Configuration and choose Google Analytics: GA4 Configuration from the list.
  4. In the Measurement ID field, paste your "G-" ID from Step 1.
  5. Keep the "Send a page view event when this configuration loads" box checked. This automatically handles pageview tracking.
  6. Next, click on the Triggering section below. Select the All Pages trigger. This tells GTM to fire the GA4 tag on every page of your website.
  7. Click Save.
  8. Finally, click the Submit button in the top right of your GTM dashboard. Give your version a name (e.g., "Added GA4 Tag") and click Publish.

Your GA4 tag is now live and tracking data.

Method 3: The Manual Way (Directly Adding gtag.js)

If you're comfortable editing your website's code and don't want to use a plugin or GTM, you can add the GA4 tracking script (known as gtag.js) directly to your site's HTML.

  1. In Google Analytics, go to Admin > Data Streams and click on your web stream.
  2. At the bottom, under "Installation instructions," find the section called Install manually.
  3. Google will provide a JavaScript snippet. It will look something like this:
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YOUR_MEASUREMENT_ID"></script>
<script>
  window.dataLayer = window.dataLayer || [],
  function gtag(){dataLayer.push(arguments),}
  gtag('js', new Date()),

  gtag('config', 'G-YOUR_MEASUREMENT_ID'),
</script>
  1. Copy this entire code block.
  2. Paste it immediately after the opening <head> tag of every page on your website. If you use a template or theme, you can usually place it once in a header theme file that applies to the entire site.

Step 3: Connect GA4 to Key Google Tools

Getting GA4 on your website is just the beginning. The next connections will feed crucial advertising and SEO data into your analytics, giving you a much deeper level of insight.

Connecting GA4 to Google Search Console

This integration lets you analyze organic search performance directly within GA4. You’ll be able to see which search queries and landing pages drive the most traffic and engagement.

  1. In GA4, navigate to Admin.
  2. In the Property column, scroll down to the "Product Links" section and click Search Console Links.
  3. Click the blue Link button.
  4. Click Choose accounts and select the Search Console property for your website (you must be a verified owner to do this). Click Confirm.
  5. Click Next, then choose the Web Stream you want to link. Click Next again.
  6. Review the configuration and click Submit.

After a day or so, you will see two new reports appear in the Acquisition section of GA4: "Google Organic Search Queries" and "Google Organic Search Traffic."

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Connecting GA4 to Google Ads

This is arguably the most vital connection for advertisers. It enables you to import GA4 goals and audiences into Google Ads for better campaign optimization, detailed attribution, and smarter ad targeting.

  1. In GA4, go to Admin and click Google Ads Links under "Product Links."
  2. Click the blue Link button.
  3. Click Choose Google Ads accounts and select the account(s) you want to link. Click Confirm.
  4. Enable "Personalized Advertising." This is what allows you to use GA4 audiences for remarketing in Google Ads. Keep auto-tagging enabled.
  5. Click Next, review your settings, and click Submit.

With this connection active, you can now import key GA4 events (like purchases or form submissions) as conversions in Google Ads and build powerful remarketing lists based on user behavior observed in GA4.

Connecting GA4 to Looker Studio (for reporting)

If you're ready to move beyond GA4's default reports, connecting to Looker Studio is the way to go. This free tool lets you build fully customized and interactive dashboards to visualize your data exactly how you want it.

  1. Go to lookerstudio.google.com and click Blank Report.
  2. In the "Add data to report" panel, search for and select the Google Analytics connector.
  3. Authorize Looker Studio to access your GA account.
  4. You'll see a list of your GA accounts. Find and select the GA4 property you want to connect to.
  5. Click the blue Add button in the bottom right corner. Confirm by clicking Add to Report.

And that’s it! You can now drag and drop dimensions (like Page title, Source / Medium) and metrics (like Sessions, Users, Conversions) to build charts and tables, creating a detailed dashboard of your web performance.

Final Thoughts

Getting your Google Analytics 4 property connected correctly is the foundation for turning raw data into actionable insights. Following these steps ensures your data flows accurately from your website to GA4 and then enriches it with crucial context from your advertising and search console platforms.

Once everything is connected, the traditional challenge becomes weaving all this information together into a single, cohesive view. Instead of spending hours in Looker Studio or manually exporting CSVs from Shopify, Facebook Ads, and Google Analytics trying to build a master report, we built Graphed to do the heavy lifting. We make it dramatically easier by allowing you to connect all your sources in just a few clicks and then simply ask in natural language for the dashboards you need. It turns the exhausting task of creating cross-channel performance reports into a quick conversation, letting you focus on strategy instead of struggling with report builders.

Related Articles