Alright, now that we have Google Tag Manager set up and installed
on our website, it's time to deploy our first tags.
Tags are these tracking codes that you
want to deploy on your website so you can capture data about your users behavior.
So today we'll go to through a tracking deployment to set up tools like
Google Analytics, facebook Pixel and Google Ads remarketing on our website.
So I'm already here inside
of Google Tag Manager and as you can see, we have no tags installed.
Currently that's the default.
And if you have something in here already,
then maybe you need to check what is actually configured.
But once you want to install a new tag, you simply click on new right here.
And then we have two panels, the tag configuration and the triggering.
And a name up here as well.
So the first tag that we want to deploy is Google Analytics 4.
For that we click on tag configurations and it gives us a list of different tools
that we can install through Google Tag Manager onto our website.
And on the top here we have Google Analytics for configuration.
So we're going to click on this one and what it needs is the measurement ID.
Can find a measurement ID inside of Google Analytics 4.
if this is new to you, you can create a free account
on the analytics.google.com with your account name and then the property name.
You need a Google account again for this one.
But once you're all set up, you will be asked to add a data stream.
So I have already a data stream in here.
You would add a data stream for your
website and once you have done that, you'll get to your configurations panel.
And here we see actually tagging instructions.
Now this is normally the code that you
would need to install and you can add certain lines of code in here in order
to configure Google Analytics to your liking.
That's all replaced in Google Tag Manager with this tag template where we have all
the configurations ready in these little fields, check boxes and so on.
So we don't need to deal with code in this configuration.
Now in Google Analytics we can go up here and look at our measurement ID.
So that's the ID that we actually need.
I'm going to copy this and put
the measurement ID into this field right here.
We also want to keep this checkbox checked to actually send page views as well.
Before we move on to the trigger, I want to give this all a name and I
follow the naming convention here of the tool itself.
so GA4, in our case,
this is a config of page view tag and we are going to deploy this on all pages.
Now I do this in this way in order to keep it all organized, especially when somebody
else comes into the account and wonders what this tag is all about.
They will see this name and probably can figure it out from there as well.
All that needs to be done now is to add a trigger and triggers are these rules
that determine when your tag should be deployed on your website.
And since this is a web analytics solution
and it really only functions if it's installed on all the sides of your
website, you can go with the All Pages trigger.
So let's add that to our tag configuration and this should be it.
We can save this.
And now it's installed in our account, but not yet on our website itself because
we haven't actually published this version yet.
Before we published,
we just want to preview if everything is actually working correctly.
So with Google Tag Manager we do this pretty easy by going into the preview
mode, connecting your Tag Assistant here to your website.
Get another tab and you see that this is
now connected based on the icons that you see up here.
Tag Assistant is connected and we should
see the tags that have fired on this page view.
This is our GA4 config tag.
We can control and check if this is actually true through certain methods.
One is obviously through the extensions that we have already used.
So the Tag Assistant extension,
you can enable that and then let's reload the page and we see right here our global
site tag with our Google Analytics 4 ID is deployed on our website.
So here it seems to work and then
the ultimate test would be if actually data arrives in our tool itself.
And in order to check
that with Google Analytics, we have a pretty handy mode here which is
under the configure section right here called Debug View.
And in a Debug View you should see
a stream of events coming into your account.
So we have here our Page View that we have
sent over with all the parameters and there's also a User Engagement event
that gets automatically deployed by our GA4 tag as well.
Now this is available to you and only
to you once you are in the Tag Assistant and are firing a tag so it doesn't get
mixed up with everybody else that is currently on the website.
That's why it's called Debug View instead of GA4.
So quite handy this one.
And now we are sure that our data is coming into GA4 and we could obviously
look if it's actually deployed on all the pages and click around here, say okay,
I'm going to over here and then I'm going to go to this product and so on.
And then we should see data coming through in this instance as well.
Now in GA4 sometimes data is batched,
so it might take a little while for you to see it.
But here we go, we get our Page Views, our User Engagement and so on.
So this might take a few seconds longer.
It's not quite real time, but close to it.
So now we're pretty sure that our tag
deployment actually works and we are ready to deploy this to all our users.
How do you do this?
Well, you go over to Google Tag Manager and then click the submit button.
And this will now publish and create a new version for you.
You can give this version a name.
And I usually do this because I want to keep track of what has happened
and what was added in my tracking deployment at that given time.
And later I can go back if I wanted to know what has been implemented when.
So I'm going to put an added GA4 Config and Pageview tag.
All right, we publish this and now it's
being deployed on all the pages of our website, even for live viewers.
So if I now exit our tag assistant here
and stop debugging, and here I'm back on the page,
I'm reloading this one.
And now I should see here Google Analytics 4 is deployed even
though I'm not in the preview mode anymore.
And we should also in Google Analytics see
that data come through, not this time in the debug view,
but then actually in the real time reporting, which you can find right here.
And I'm in Berlin right now and my pageview was tracked.
So this has been a successful little tag deployment that we have done.
Congratulations.
If you have followed along so far, you have deployed just your first tag.
Now let's go on and do this a little bit faster this time and look at deploying,
for example, a Facebook or Meta Pixel as it's now called.
So we'll go again to new and to tag configuration.
And here we have all our tools.
Unfortunately, Facebook is not part
of the vendors that have submitted a template for review here.
But there's something called the Community Template Gallery where
the GTM community can write their own templates and submit them.
So when we click on that one, we get a list of many more tools.
Let's take a look at Facebook as part of this.
And here we go. We have the Facebook Pixel
from the Facebook Archive and we are going to click this and add this to the space.
You need to acknowledge some permissions here because this is a community template.
We'll add this and now we have a template installed.
And this time, we simply need the Facebook Pixel ID.
So you log into your Events Manager if you're familiar with that one,
and you have the pixels that you have set up here.
And I have my Pixel ID right here.
So I'm going to copy this and put this into this field right here.
We want to send over a standard page view
and we'll keep all the other settings untouched.
I'm going to give this a proper name.
So this is the Facebook Meta Pixel, and we are sending over a page view here.
So as a trigger.
Again, we'll choose All Pages because we want to have it deployed on all the Pages.
Going to save this and quickly preview.
Right, it's connected.
Google Tag Assistant says, yes, it's being deployed.
And then we have an extension called the Facebook Pixel Helper.
But we can also see the Page views being deployed.
And on the Events Manager, we can go to test events here.
And here you can see all the different events that just came in.
Although, let me just clear this activity and try this one more time.
Here we go.
We have our Page view that is now installed.
Okay. That is the Facebook pixel.
Let's go ahead and deploy one more tool, which is Google Ads Remarketing.
For that, let's first go through our steps.
We click on new tag configuration here.
There's obviously a tag template because we are working with Google products.
with Google Ads remarketing.
And here we need to put in our Conversion ID.
Where can you find that? In the Google Ads interface on the tools
and settings, you can go over to your shared libraries.
And we have here our Audience Manager, and we have our data sources here.
And as a data source, we have our Google Ads tag.
Let's click on details.
And we have here the tag setup configurations.
And this is our conversion. ID.
So I'm going to copy that and we'll put that simply in this field.
And you get a warning here that you should install the conversion linker tag.
That's very important in order to set the cookies correctly.
So everybody needs to have that installed.
If you're using the Google Ads remarketing or conversion tracking,
we're going to go to create here, I'm just going to click Save.
It gives the name conversion linker automatically.
So we'll save this one and the trigger is All Pages.
And now we have this tag also installed.
It is necessary and just needs to be deployed on all the Pages.
We have our conversion ID. In here.
We don't need to choose any of the other settings unless you want to change them.
And we can choose as a trigger.
Again, our All Pages.
Let me not forget to give this a proper name.
So this is Google Ads remarketing on all pages.
And we'll save this.
And now we should preview our tag deployment again.
We already checked Facebook.
Google Analytics 4.
And now let's check Google Ads.
So it seems that Google Ads has been
deployed here and in our Tag Assistant extension.
Let me enable this one we now see.
It also shows up right here.
So this is great.
It seems to be working inside of Google Ads.
There's unfortunately not such a thing as real time reporting.
So you can see exactly what is being sent over to Google Ads at this point in time.
But it will give you a hint here after
a few hours, if this has been tracked correctly.
So you can take a look at this and see if it works.
That said, I think we are ready to publish our changes here as well.
So let's go over to Google Tag Manager and submit this as a version.
This time we added Google Ads and the Facebook Meta
Pixel So that is now being published
and it's live on all our websites to all our users.
One word about the version control here.
You can at any time, again,
if you have named correctly, go back to your versions.
You can see what kind of versions were
published in the past and you can roll back if you want to.
So I have a lot of stuff here because I've been testing some of that already.
All right, as you can see, Google Tag Manager is not that hard.
You just simply need to go through the steps of creating a tag,
then configuring it correctly, adding a trigger to it.
Then you need to save this all and preview it first on your browser.
And if you're sure that everything is
working, you can submit this as a version and then it will go live to all the users.
And the simple reason why we are going through all of these steps is that if we
run into any trouble here, then we can debug and see what is going on.
So if it's not deploying in the preview
mode, then maybe something is going on rather than just deploying it right
away onto the website and it might not work or even destroy your website.
So that's why you should always test before you actually publish something.
And now we have deployed a pretty basic
setup of Google Analytics for the Facebook Pixel and Google Ads
remarketing, and we always use the All Pages trigger.
Obviously there are other triggers out
there, but this is something we are going to learn in the next lesson and I'm going
to show you how you can work with trigger a bit more.
If you enjoyed this lesson, please give us a thumbs up.
And also please follow along with the next lesson right over here.
Now. My name is Julian.
See you over there.