How to Use Google Analytics for Twitter

Cody Schneider8 min read

You can see how many people like and retweet your posts right inside Twitter, but once they click a link to your website, they disappear into a black hole. Google Analytics is the key to finally seeing what your Twitter audience does after they click, transforming your social media guesswork into a measurable strategy. This article will show you exactly how to track your Twitter marketing performance from click to conversion using special links and Google Analytics reports.

GraphedGraphed

Still Building Reports Manually?

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

Watch Graphed demo video

Why Bother Tracking Twitter in Google Analytics?

Twitter's own analytics are great for measuring on-platform engagement - things like impressions, likes, and retweets. This data tells you what's popular on Twitter itself. Google Analytics (GA), however, tells you what happens after the click. It answers the crucial business questions:

  • Does my Twitter traffic lead to actual sales, sign-ups, or leads?
  • Which specific tweets or campaigns drive the most valuable users to my site?
  • How do visitors from Twitter behave compared to visitors from other channels like Google Search or Facebook?
  • Is the time I'm spending on Twitter actually generating a return on investment (ROI)?

By connecting Twitter to Google Analytics, you get a full view of your customer journey. You stop measuring vanity metrics and start measuring impact. This is how you justify your social media budget and figure out what content truly resonates with an audience that's ready to take action.

The Secret Ingredient: UTM Tracking Codes

Google Analytics can’t automatically tell the difference between one link you shared on Twitter and another. To get granular insights, you need to add special "tags" to the end of your URLs. These are called Urchin Tracking Module (UTM) parameters, and they’re much simpler than they sound.

A UTM code is just a small piece of text added to a URL that tells Google Analytics exactly where the click came from. It's how GA knows a visitor arrived from your spring sale tweet versus the link in your Twitter bio.

There are five standard UTM parameters, but for Twitter, you’ll mainly focus on three or four:

  • utm_source (Required): This identifies the platform or source of the traffic. For Twitter, it will always be twitter.
  • utm_medium (Required): This defines the marketing medium or channel. A good standard practice is to use social for organic posts and cpc (cost-per-click) for paid ads.
  • utm_campaign (Recommended): This names the specific campaign you're running. This is where you get organized. Examples: q2-product-launch, summer-sale-2024, or influencer-takeover.
  • utm_content (Optional but useful): This helps you differentiate between links within the same campaign. You can use it to track which specific tweet, image, or call-to-action worked best. Examples: profile-link, video-tweet-promo, or blue-cta-button.
  • utm_term (Optional): This is mainly used for paid search to identify the keywords you bid on. You likely won’t use this for organic Twitter posts.
GraphedGraphed

Still Building Reports Manually?

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

Watch Graphed demo video

How to Build a Trackable URL for Twitter

You don't have to build these URLs by hand. The easiest way is to use Google's free Campaign URL Builder tool. Just fill in the fields, and it will generate the fully tagged link for you.

Let's walk through an example. Imagine you're promoting a new blog post about "Growth Hacking Tips" as part of a content promotion campaign.

  1. Go to Google's Campaign URL Builder.
  2. Enter your website URL: https://www.yourwebsite.com/blog/growth-hacking-tips
  3. Enter campaign_source: twitter
  4. Enter campaign_medium: social
  5. Enter campaign_name: q3-content-promo
  6. Enter campaign_content: growth-hacking-video-tweet (Let's say this specific tweet includes a video).

The tool will automatically generate this URL for you:

https://www.yourwebsite.com/blog/growth-hacking-tips?utm_source=twitter&utm_medium=social&utm_campaign=q3-content-promo&utm_content=growth-hacking-video-tweet

That link is long and ugly, so you’ll want to use a URL shortener like Bitly or the one built into your social media scheduler before posting it. The shortener won't affect the tracking, all the UTM parameters will still be passed to Google Analytics.

Best Practices for UTM Tagging

To avoid creating a mess in your analytics reports, consistency is crucial. Follow these simple rules:

  • Be consistent with casing: Google Analytics is case-sensitive. Twitter and twitter will show up as two different sources. Stick to lowercase to keep things clean.
  • Use dashes, not spaces: Spaces in URLs can cause issues. Use hyphens (-) instead of spaces (e.g., q3-content-promo instead of q3 content promo).
  • Keep a spreadsheet: It's easy to forget which campaign names you've used. A simple shared spreadsheet with campaign names, sources, mediums, and the final links helps keep your whole team aligned and your data reliable. A chaotic UTM strategy leads to chaotic reports.

Where to Find Your Twitter Data in Google Analytics 4

Once you’ve shared your UTM-tagged links on Twitter and they've started getting clicks, that data will begin to populate in GA4. Here’s exactly how to find it.

GraphedGraphed

Still Building Reports Manually?

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

Watch Graphed demo video

Step 1: Navigate to the Traffic Acquisition Report

This report is your central hub for understanding where your users come from.

  1. Log into your Google Analytics 4 property.
  2. On the left-hand navigation menu, click on Reports.
  3. Under the "Life cycle" section, click on Acquisition, then select Traffic acquisition.

By default, this report shows you data grouped by the Session default channel group. You'll want to change this to see your custom UTM parameters.

Step 2: Change the Primary Dimension

To see your Twitter data clearly, you need to change how the report is organized.

  1. In the Traffic acquisition report, click the dropdown arrow next to the Session default channel group dimension (the primary dimension of the table).
  2. In the search box that appears, type "source" and select Session source / medium.
  3. Now, the table will reload, and you’ll see an entry for twitter / social (or twitter / cpc if you’re running paid campaigns). This line item contains all the traffic from the links you tagged with that source and medium.

Step 3: Drill Down with a Secondary Dimension

Now, let's see which specific campaigns are performing the best. This is where you can use the utm_campaign and utm_content tags you set up.

  1. Next to the primary dimension dropdown, click the blue + sign to add a secondary dimension.
  2. In the search box, type "campaign" and select Session campaign.

The report will now show separate rows for each unique campaign name you've used, like q2-product-launch or summer-sale-2024, nested under your twitter / social source. At a glance, you can compare how many users, sessions, and conversions each campaign drove.

You can do the same for Session content to see how different creative variations or CTAs performed within the same campaign.

Beyond Clicks: Tying Twitter Activity to Conversions

Traffic is great, but the ultimate goal is action. To measure the true ROI of your Twitter efforts, you need to track conversions - the key events you want users to complete on your site.

In GA4, conversions are based on events. You can mark any event (like purchase, generate_lead, or sign_up) as a conversion. Once you've configured these, the conversion numbers will automatically show up in your Traffic Acquisition report.

Look at the Conversions column in the report you just configured. By filtering down to your Twitter traffic (using Session source / medium) and adding Session campaign as a secondary dimension, you can see exactly which Twitter campaigns led to purchases, sign-ups, or form submissions. This is incredibly powerful data. You might discover that a campaign with low likes and retweets actually drove the most sales, while a viral tweet drove a lot of clicks but zero valuable actions.

GraphedGraphed

Still Building Reports Manually?

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

Watch Graphed demo video

Creating a Reusable Twitter Performance Exploration

If you find yourself creating this report often, you can build a saved exploration in GA4 for quick one-click access.

  1. In the left-hand menu, go to Explore and select Free form.
  2. In the "Variables" column, click the + sign next to "Dimensions," and import:
  3. Click the + sign next to "Metrics," and import metrics that matter to you, such as:
  4. Drag Session source / medium and Session campaign from Variables to the Rows box under "Tab Settings."
  5. Drag the metrics you imported over to the Values box.
  6. You can add a filter to this report. Under "Filters," drag in "Session source / medium," select "contains," and type in "twitter" to show only your Twitter data.

Now you have a dedicated, customizable report specifically for analyzing your Twitter performance that you can come back to anytime.

Final Thoughts

Mastering UTMs to track your Twitter traffic in Google Analytics is the single biggest step you can take to level up your social media strategy. It moves you from simply posting content to building a measurable, goal-driven marketing machine. By focusing on site behavior and conversions, you can finally understand what's truly working and invest your time and budget wisely.

Of course, building all those UTM links, finding the right reports, and configuring filters can still eat up a lot of time. At Graphed, we built an AI data analyst to automate this whole process. We make it easy to connect your favorite tools like Google Analytics in just a few clicks. From there, you can just ask questions in plain English like, "show me a dashboard comparing my top performing Twitter campaigns by conversions for the last 30 days," and get an interactive dashboard instantly. If that sounds easier than wrestling with reports, you should give Graphed a try.

Related Articles

How to Enable Data Analysis in Excel

Enable Excel's hidden data analysis tools with our step-by-step guide. Uncover trends, make forecasts, and turn raw numbers into actionable insights today!