welcome back to our fifth lesson of our
gtm for beginner series
in this video we're gonna install the
facebook pixel
and track conversions all the more
coming up
hey there measure geeks julian here back
with our fifth lesson of our gtm for
beginner series
if you have followed along so far we've
already installed google tag manager we
set up our tag plan
and we deployed our first tag with the
google analytics four
tag which is now tracking data into
google analytics for
but there is something crucial missing
if you do any kind of paid
advertising because you always want to
report back to your paid advertising
channels just like facebook
that somebody converted somebody took
the action on
your page which you intended them to
take
and that is very valuable information to
optimize your ads later on
so in this lesson we're gonna set up the
facebook pixel and then also
show you how to track conversions as
always if you want to test your
knowledge later on then head over to
measureschool.com
lesson5 where you can test your
knowledge
but let's dive in to today's video so
here i'm already in
our demo shop and on this side we have
already the google analytics 4
tag deployed now we want to install some
new tags i put this actually in my tag
plan here
that i want to install the facebook
pixel first of all the general facebook
base tag which would be the page rule
and then also a conversion tag which
would
track if somebody submits a form and
this will send over a
lead event to facebook i already have
the configurations here of my pixel if
you
want to test this out yourself you can
go over to your facebook
events manager and then here you should
find your facebook pixel or on the
settings
there is your facebook pixel which you
just need to copy
so let's implement this on the page
first of all our page view
which would be deployed through all
pages we actually did this in the last
lesson already
so we just go over to tags here and
click new and then we choose the tag
configuration
and we have many different templates
available unfortunately the facebook
template is not one of them
luckily there is a community gallery
where
users can submit templates and we also
have one for the facebook pixel
so right here this is made by the
facebook incubator
and we can add this to our workspace
need to confirm
that we want to add this
and then we get our template and here we
can put in our pixel
id now we can ignore all of these
different other settings for now
and just go ahead and give this all a
name
so we'll send over a page view on all
pages
obviously we need to still add our
trigger here which will deploy our tag
on all pages
save this and let's put our
browser into the special preview mode
where
we can see which tags are being deployed
live on our website and if you go back
to the tag assistant here
we see our facebook pixel now fired this
should be on all pages
so obviously we can do a spot check by
going to
some random page here and hopefully
still seeing
that our page view is still fired
that is the case we also have the
ability to look into the facebook pixel
helper an extension that you can install
to your browser
where we see the pageview has been sent
over and then
the last method is actually to go into
your events manager and there is
something called test events
and here you can test a new event here
by entering
your url into this little field
and open this on the website now this
will not happen on this tab
because this is not connected to the tag
assistant but here if i
should reload this you should be able to
see something here yes we get a page
view
and that happened on our data ninja page
right there
so with that we have the facebook pixel
already
installed in order to actually take this
live to our website
we would deploy a version but since we
have
one more tag that we want to install we
can actually push this to later on
and publish this all at once so let's
take a look at the
second part that we want to install here
which is our confirmation page now this
tag
is exemplary for all of the different
other conversions
that you might want to track really what
you would need to find out is
on your page what are the events that
you want to optimize for
in order to get more traffic to these
and make your users do this action
now in our case i just chose a form here
which is just one
of many conversions that you could track
obviously if you're on the ecommerce
store which we are here
you could also track purchases which is
a little bit more complicated so
for this short and simple tutorial i
wanted to
do this in the form so let's take a look
at actually what this action would look
like we go over here to the forms and i
have one
prepared here in ninja form
and when we fill that out
we get to this confirmation page now
facebook has many different
standard events that you can send over
that can be interpreted by
facebook and you can look at them in the
reference here under the facebook
developer reference
so they have add payment infos for
example one action or add to card at two
wish list
this is all data that facebook can then
interpret and therefore
it's a good idea to send over one of
these standard events
and here we have a lead which would fit
quite well
to our standard form that we are filling
out here
so in order to send over such a standard
event we first need to create a trigger
that only triggers on this confirmation
page
that we have right here now we already
went to that confirmation page and we
can look into
our variables right here in order to see
for example on this container loaded
how variables get filled now variables
are kind of like placeholders which
google tag manager uses to evaluate
whether it should fire your tags
so we can for example use the page path
and say if the page path
is ninja forms confirm then we want to
fire our tags so i'm going to copy this
over here
and if we compare this with other page
views obviously
the page path would change based on
which page you are on
and therefore we want to
set our trigger to evaluate on this
variable
so let's go ahead inside of tag manager
go to variable
go to triggers and create a new trigger
which is not our all pages trigger
anymore but
this will evaluate on our page view and
it will only fire on ninja forms confirm
now in the configurations of such a
trigger we can
choose different events and we'll get to
some of these events in a later lesson
what i wanted to do
is fire this on the page view and then
only on some pages where
my variable which was page path contains
or let's go with equals which is a bit
more stricter
ninja forms confirm so this is a
trigger that we have now created which
should fire our tag only
on our ninja forms confirm page so let's
go ahead and now configure our tag for
facebook
again i'm going to go to new here and
then tag configurations
let's search for our facebook pixel and
we need to put in our id
again which we have right here
and then we have our event names and
there is a standard event name
resent over pageview that's
pre-configured like last time
but now we can see all of these
different other standard events that are
also available
and i wanted to go with lead so this is
what i'm going to
choose and then as the trigger i'm going
to choose
our new defined trigger of ninja forms
confirm
let's give this all a name this is still
our facebook pixel
for this time our lead event which will
fire
on our confirm form page
let's save this we need to click on the
preview
button again in order to save this and
then reload our page
and now it's connected we are not yet on
the front page so i'm gonna go over to
ninja forms
and just to to show you on our tag
assistant
our facebook lead form has not fired on
this pageview
because when we click into it you can
actually see well you need to
choose an event here so you can actually
see
why did this not fire well the page path
does not equal ninja forms confirm when
we click here on values
it was ninja forms so it's the pageview
before only if we now click
on submit we get to the confirmation
page
and now we should actually see
yes our facebook lead fired and
our container loaded when we click into
the lead
now gives us the check marks throughout
and our trigger actually
fired this tag because ninja forms
confirm equals ninja forms confirmed
which is right
if you want to see the names again the
page path equals our ninjas from
confirm so we've now sent off the lead
obviously you would do a little bit of a
spot check of
has actually been sent in the tag
assistant yes has this
been registered here in the facebook
pixel helper seems so as well
and if we go to events manager we also
see now
a lead event that has been put into
our events under test events so
this is now sent over and you could
build a custom conversion of that
it would also show up in your facebook
ads manager later on
and you can optimize your campaigns
based on that well actually it's not yet
quite implemented because we haven't yet
created a version and published this to
our website
that's always the last step that we
actually need to do so we go over to
submit
and add a version name here
and then when we click on publish this
will go live to all
out our users so our facebook pixel with
our conversion tracking
is now implemented so there you have it
this
is how you can implement a conversion
pixel onto your page we did this on the
example of facebook ads but obviously
you could also do it with your google
ads or your google analytics for the
process might be slightly different but
i trust you will be able to figure it
out
if you think you understood everything
that you have seen here
and actually know what to do then head
over to measureschool.com lesson5
and test your knowledge see how well you
do in our quiz
but you probably know there's always
more that you can do with google tag
manager and
actually we have one more lesson where
we are going to install
auto event tracking with the help of tag
manager
so don't miss out on this lesson it
should be over there and
my name is julian til next time