In this video, you're going to learn how to set up conversion
tracking for Google Ads and Google Analytics for your Shopify store.
This allows you to track the actual sales amounts from your Google Ads campaigns
right there in your Google Ads account.
This is our favorite method for tracking conversions with Google Ads,
as it shows the sales values right there in your Analytics account and in your Google Ads account.
Here's an overview of how it all works before we jump in to do it step-by-step.
You're running Google Ads to drive traffic to your ecommerce store.
We'll set up a Google Analytics account and then install a tracking code on our Shopify store.
This is so that all traffic demographics of those users and the data on the sales
we're making will show up in our Google Analytics account.
We'll then link our Google Analytics account to our Google Ads account.
This is so the conversion data will show up in Google Ads and on our Google Shopping campaigns.
Showing up in our Google Ads account is going to show us what
actually helped to get that sale or conversion.
This means we'll see which campaign is getting conversions, which products,
which ads, and everything in between.
This is important for us to know what's working and how to optimize our account
further with Google Ads and Google Shopping.
First let's create our Google Analytics account and link it into Shopify.
If you don't have a Google Analytics account we're going to create one right now, if you
do just skip this part here and go straight to the part where we link it into Shopify.
Go to analytics.google.com,
if you're not yet logged in with your Gmail account make sure you do that.
Click "Start measuring".
We're going to add in our account name, this is just going to be the name of our store.
It's then going to ask us our account data sharing settings.
You can just leave this as it is and click "Next."
It's then going to ask us our property name.
You can put this the same as your store name.
Put in your actual time zone, and your currency as well.
It's then going to ask you about your business information, just fill this in.
You're going to have to read and accept the terms and conditions.
Once finished, it's then going to ask you about your email communications.
So here we're going to put in what emails do we want to see from Google.
I like to just check the first one.
Next, we'll need to create a new Google Analytics 4 property.
So, click "Admin" down the bottom and then click "GA4 setup assistant".
We're then going to click "I want to create a new Google Analytics 4 Property"...
"Get started"
Click "Create Property"... We're now going to click "See your GA4 Property."
Now we need to link our Google Analytics account to our Shopify store.
You should see this page right here, if you don't you can always
access it here by clicking "Data streams" while in the admin menu.
Click "Web"...add in your website URL, and I'm going to name it with my brand name...
Make sure enhanced measurement is turned on click "Create stream."
You should now see this window here...
To install the tracking code click the "Global Site Tag" and click "Copy."
Now, let's go over to our Shopify dashboard and we'll install it on our website.
Here we're in our Shopify dashboard.
On the left-hand menu, we're going to click on "Online Store."
We're going to click on "Themes"...
Click on "Actions"..."Edit code."
Make sure to select "theme.liquid" in the left-hand menu.
Confirm that you're in theme.liquid by seeing the title of the page above.
Scroll down to the section that says "head," type "enter"...
and make sure to create some space, and then paste the code you copied from Google Analytics.
Click "Save"...
It will say "Asset saved" down the bottom to confirm.
Now we need to confirm that it's been installed correctly.
To do this, go back to our Shopify store front end, and click through a few different pages.
This will trigger the Analytics code and send information to
Google Analytics for us to confirm that it's been installed properly.
Keep this window open and click back to Google Analytics on a different tab.
Exit out of the stream details.
On the left-hand menu... go to reports real-time.
This page shows you who's on your website right now, in real-time.
If you're not seeing anything here yet, that's okay.
It just takes a few minutes to start working.
I'll wait about three to five minutes here, and then go back to my store...click
around a little bit to make sure I'm sending data, and then I'll check again.
Okay, you can now see that it's sending information.
It has all the data I checked when I was clicking around.
What do you do if you're not seeing the data come through?
1. Try refreshing the Google Analytics page here, that can sometimes work.
2. Open up your store in an incognito private window or even on your mobile device.
Then click around a few pages and check back in Google Analytics
in a few minutes to see if that helped.
If it's still not working, we need to double-check that we've installed our tag correctly.
Here's how to do that... Go to your website, right-click,
and go to "View page source"
You'll see the code for your site.
Go where the head tag is and see if you can find the Google Analytics name there.
You can also press Ctrl + F, or Cmd + F to show the search bar, and search for Analytics.
See that on this store we can see it right here.
If you can't see it on your site go back to Shopify and check a few things.
Make sure that you clicked "Save" on the window.
Also make sure that you're in theme.liquid when making these changes.
Then if it's still not working try clearing the cache for your browser and store.
Once you get that working, you'll start seeing the
data for all the people visiting your store showing up in Google Analytics.
Keep in mind that apart from the real-time window,
it takes 24 to 48 hours for data to show in these other tabs.
We now need to make sure that conversion data,
like sales revenue, shows up in our Analytics account when people purchase.
In your Shopify dashboard navigate to settings... checkout,
and scroll down to the additional scripts section, underneath order processing.
This is where we're going to add another Analytics code that will send the conversion
values over to Google Analytics. Go down below this video and find the full code.
It should look like this...
We will need to edit something in this code,
but for now, copy this and paste in the box of additional scripts here.
Let me show you what this code does really quickly,
and then show you what you need to change.
You'll see here that it has things like transaction ID, value
currency, tax, shipping, items, etc.
Next to this, you'll see these bits of code here...
These are variables, here when someone buys from your store and checks out through Shopify,
Shopify fires this code and fills all that info
with the actual unique info for the customer and their order.
Basically, it sends the sales value and everything over to Google Analytics so
you can track the conversion value for our store in the Google Analytics dashboard.
Pretty cool, huh? 😎
So what do we have to change?
Just find a variable that says 'KEYCOMMERCE',
and change this to your Google Analytics Measurement ID.
We do this by going over to Google Analytics and copying our Measurement ID
and then returning and deleting 'KEYCOMMERCE' and pasting it in.
There, that's how we do it, we can now save.👍
Next, we just have to quickly exclude Shopify as a referral in GA4.
Basically, what this means is that because of the way the Shopify checkout works,
if we don't add Shopify as an excluded referral,
then the Shopify checkout pages will show up in our reports which is not something we want.
To do this, go back to admin in Google Analytics.
Click on our "Data Stream'" here... scroll down to "More tagging settings," click "List unwanted
referrals," add "checkout.shopify.com" as an exclusion, and click "Save."
We also want to exclude payment gateways such as stripe.com, paypal.com, and pay.google.com.
I've added links to resources about excluding unwanted referrals in the description box below.
Lastly, before we link Google Ads to Google Analytics,
we do want to add the old version of Analytics to our store, just in case.
To do this, go to online store, then go to preferences.
Now we want to go back to Google Analytics, and go to the admin page.
We're going to click "Create property."
Now here we're going to scroll down, and click "Show advanced options."
We're going to select this, then we're going to select the second one,
and we're going to add in our website URL.
Change the name to the name of your website.
Make sure you set the time zone, and the currency, scroll, down, and click "Next."
Fill out the business information as you wish, click "Create."
It's then going to create our Google Analytics Property.
This is the old Google Analytics.
We're just going to copy the Global Site Tag here,
go back to our ecommerce store and paste it in the Google Analytics account box.
Click "Save."
Now, we're going to click "Use enhanced ecommerce," click "Save," click "Admin,"
and navigate to the view for which you want to turn on enhanced ecommerce.
In the view, column click on "eCommerce settings."
Here we want to enable ecommerce by clicking this button.
Make sure you also turn on "Enhanced ecommerce reporting".
Now, we just click "Save."
The next thing we need to do, is link our Google Analytics account to our Google Ads account.
To do this, log into your Google Ads account that you've already set up.
Go to ads.google.com.
If you haven't set it up you'll need to do so.
I'll leave a link to a video I made showing
you how to set up your Google Ads account below this video.
Click "Tools and settings," at the top under setup click "Linked Accounts."
You'll then see Google Analytics GA4...click on "Details."
If you are logged into Google Ads with the same email address you use to create
a Google Analytics account, you should see your Google Analytics property below.
Under the actions column click "Link."
Turn on "Import audiences," and click "Link."
It will then link and show linked.
Also, make sure to turn on auto-tagging in the toggle above.
And that's how you link your Google Ads account to your Google Analytics 4 account.
The final thing we need to do, is set up conversion tracking in Google Ads.
In your Google Ads account, go to "Tools and settings."
At the top, under measurement click "Conversions."
You'll see a page like this.
Just click "+conversions."
Click "Import'" to import conversions from Google Analytics.
Click Google Analytics for properties.
Select "Web," click "Continue."
It's then going to show the linked account we linked earlier.
Select the event, and click "Import and continue."
It then says it's been imported click "Done."
I'm now just going to edit the attribution settings, so click into the conversion action
you just created...click "Edit settings," and I'm going to change the attribution model to linear.
Basically, by changing the attribution model to linear,
we're going to be able to see what clicks contributed to the sales for our store.
That's everything we need to do, so just click "Done."
That's it, guys! 🏆
We've finally set up conversion tracking with Google Ads,
using Google Analytics on our Shopify store.
If you're watching this video on YouTube, it's actually part of our full
free Google Shopping course on our website.
We teach you how to set up, optimize,
and scale your Google Shopping campaigns to make more profits for your ecommerce store.
I'll leave a link down below so you can go and access this free course right away.
If this video was useful please, hit the like button,
and let us know in the comments down below.
Thanks for watching guys.
I'll see you in the next video, bye for now.