How to Add Social Media to Google Analytics
Tired of posting on social media and just hoping it drives traffic? To see what's actually working, you need to connect your social efforts to Google Analytics. This guide will show you exactly how to track your social media performance in both GA4 and Universal Analytics, so you can measure impact and prove your ROI.
Why Bother Tracking Social Media in Google Analytics?
Each social platform has its own analytics dashboard, but they only tell you half the story. You can see clicks, likes, and shares, but what happens after someone clicks your link? That's where Google Analytics comes in.
By tracking social media traffic in GA, you can:
- Identify Your Top-Performing Channels: Pinpoint which social networks (Facebook, Instagram, LinkedIn, etc.) are sending the most, and most valuable, visitors to your website.
- Measure Your Social Media ROI: Connect specific posts, ads, or campaigns directly to on-site actions like sign-ups, downloads, and sales. No more guessing if a campaign was a success.
- Understand the Full Customer Journey: See how social media fits into the larger picture. You might discover that LinkedIn drives initial awareness, while an Instagram ad prompts the final purchase.
- Optimize Your Strategy: Armed with data, you can double down on the channels and content types that are delivering real results and waste less time on those that aren't.
Instead of logging into five different platforms to piece together a report, Google Analytics can give you a single, unified view of your traffic and conversions.
Where to Find Your Social Traffic in Google Analytics 4
In GA4, Google automatically tries to categorize where your traffic is coming from. Social media is one of its default groupings. If people are visiting your website directly from a social media profile link or an untagged post, their visit will likely be counted here.
Here’s how to find the basic social traffic report:
- From your GA4 home screen, navigate to the sidebar and click on Reports.
- In the left menu under the "Life cycle" collection, go to Acquisition → Traffic acquisition.
- The default report shows a table with a "Session default channel group" column. Look for rows labeled "Organic Social" and "Paid Social."
What do these mean?
- Organic Social: This includes visitors who clicked a link from an unpaid social media post, a link in your profile bio, or a shared link from another user.
- Paid Social: This represents visitors who clicked on a paid ad or promotion from a social media platform.
This report is a great starting point, but it's very general. To get the rich, campaign-level detail you really need, you'll have to take control of your tracking with UTM parameters.
The Power of UTM Parameters: Taking Control of Your Social Traffic
If you want to know which specific Facebook ad, LinkedIn post, or Instagram story drove conversions, you can't rely on GA's automatic bucketing. You need to use UTM parameters.
UTM parameters are simple tags you add to the end of your URLs. They don’t change the destination of the link, but they give Google Analytics precise information about where that click came from. It turns a generic link into a detailed 'data postcard' that GA can read.
There are five main UTM parameters, but for social media, you’ll mostly focus on three:
utm_source(Required): This identifies the specific platform, likefacebook,linkedin,twitter, orinstagram.utm_medium(Required): This describes the channel type. For social media, common choices aresocialfor organic posts, orcpc/paid_socialfor ads.utm_campaign(Required): This names your specific campaign, likeq4_holiday_sale,influencer_collab_june, orlaunch-announcement.utm_content(Optional): This helps you differentiate links within the same post or ad. For example, if you have a link in the ad copy and also on the image, you could label themtext_linkandimage_linkto see which got more clicks.utm_term(Optional): This is typically used for paid search to identify specific keywords, so you’ll rarely use it for social media tracking.
An Example in Action
Let's say you're promoting a new product launch on Facebook with an organic post. Instead of sharing this regular URL:
https://www.yourshop.com/new-product
You would share this tagged URL instead:
https://www.yourshop.com/new-product?utm_source=facebook&utm_medium=social&utm_campaign=new_product_launch
When someone clicks this link, GA4 will now know with 100% certainty that the user came from Facebook, as part of your organic social efforts, for your new product launch campaign.
How to Create Tagged URLs With the Campaign URL Builder
You don't need to manually type out these long URLs. Google provides a free and easy-to-use tool called the Campaign URL Builder.
Here’s how to use it step-by-step:
- Go to the Campaign URL Builder: Either search for it on Google or navigate directly to the tool.
- Enter the Website URL: This is the base link to your landing page or website. For example:
https://www.yourshop.com/new-product - Fill in Your Campaign Parameters:
- Copy the Generated URL: As you fill in the fields, the tool automatically generates the final tagged URL at the bottom of the page. Simply copy it.
Now, use this new, tagged URL in your Facebook post instead of the plain one. You can use a URL shortener to make it more manageable.
Three Golden Rules for UTM Tagging
To avoid messy and confusing data, follow these simple best practices:
- Be Consistent: Always use the same naming convention. Decide with your team if you're using
linkedinorLinkedIn(hint: always use lowercase to be safe) and stick with it. Inconsistent capitalization likefacebookandFacebookwill show up as separate sources in your reports. - Use Underscores or Dashes, Not Spaces: Spaces in URLs can break links or get filled with messy characters like
%20. Instead of "summer sale,” usesummer-saleorsummer_sale. - Keep a Record: Use a simple spreadsheet to keep track of the campaign names and tags you use. This helps your team stay consistent and prevents you from forgetting what a campaign like
q2b_promo_var3meant six months ago.
Analyzing Your Social Campaign Data in GA4
Once you've shared links with UTM parameters for a week or two and gathered some data, you can go into GA4 to see the real results.
The standard Traffic acquisition report is the best place to find this information.
- Navigate back to Reports → Acquisition → Traffic acquisition.
- Beside the "Session default channel group" header in the report table, you’ll see a little "+" icon. Click it to add a secondary dimension.
- In the search box that appears, type "Session campaign" and select it. Alternatively, you can search for "Session source / medium" to see those tags.
The report will now show your social traffic broken down by each unique campaign name that you created in the URL builder. Instead of just seeing a row for "Organic Social", you'll see a specific breakdown, such as "new_product_launch" or "influencer_collab_june". Now you can measure the key performance metrics of your UTM tracked campaigns directly, such as "Users" and "Engaged Sessions". Scroll toward the right and choose whatever data would prove most valuable, for instance, "engagement" and/or revenue/purchases.
Final Thoughts
Properly tracking your social media campaigns in GA with URL tagging takes you beyond simple guesswork. We are more confident in using data to back our ever-changing marketing moves as our data comes directly back, showing results to all. We are better able to allocate budget more wisely when making these changes while optimizing our overall approach, knowing which channels drive real business growth.
Graphed is our most powerful solution and tool for people just like you. With it, we can take the entire journey of your new online visitors or leads and provide valuable data to support decisions across different teams. We make it our business to make your business successful in everything from sales to marketing to management in general. Everything comes easier when we have a dashboard with all our KPIs at the click of a button, not multiple windows, each with a different purpose in front. If you think so too, try Graphed. It allows you to see your data from all of your data sources at one go, and with a question in English, you can generate dashboards on the go with the whole funnel!
Related Articles
What SEO Tools Work with Google Analytics?
Discover which SEO tools integrate seamlessly with Google Analytics to provide a comprehensive view of your site's performance. Optimize your SEO strategy now!
Looker Studio vs Metabase: Which BI Tool Actually Fits Your Team?
Looker Studio and Metabase both help you turn raw data into dashboards, but they take completely different approaches. This guide breaks down where each tool fits, what they are good at, and which one matches your actual workflow.
How to Create a Photo Album in Meta Business Suite
How to create a photo album in Meta Business Suite — step-by-step guide to organizing Facebook and Instagram photos into albums for your business page.