hey my name is cedric from vertex
marketing agency and doing this video
for measureschool.com and today i'll
show you how you can verify that your
events are properly coming in inside
events manager so that's actually
something that i do every time i start
working with the new client just to make
sure that the events that they care
about are probably being sent to events
manager but you actually might want to
go through the process i'm going to show
you today if ever you are let's say
changing from wordpress to shopify or
maybe you've made a lot of different
changes on your website and you just
want to make sure that your current
setup and your system is still sending
everything properly so i'm going to show
you everything that you need to know to
test that and verify it but i'm also
going to go through the diagnosis tab
and i'm going to show you how you can
get rid of some of those warning
messages that you might get inside your
ad account so anyways i'm gonna remove
my face and i'm gonna share my screen
and i'm gonna show you how
okay so i am now an advanced manager and
you can get there by just going to
business.facebook.com and you should see
a little hamburger menu here called all
tools click on it and then you it's
right here so events manager so click on
that and then you should get a page just
like this one now we're going to do is
test all our different events via the
browser so the way we can do that is
just by clicking this little button here
where it says test events and let me
just make sure everything is clear now
if we scroll down there's two different
sort of tests i guess that we can make
we can test browser events and we can
test server events in this video we will
only be testing browser events but if
you want to learn a little bit more
about server side and how you can send
events to the server and also making
sure that these events are coming in
properly by using this little test id
here i've actually made another video on
the channel about how to send events to
the conversion api using zapier but i
know that julian also has another video
showing you how to send events to the
facebook conversion api right because
that's what it is when you're sending
event to the server you're using the
facebook conversion api
julian made another video about that
with google tag manager so we can leave
the link of those two videos in the
description of this video okay so now to
test browser events all we have to do is
enter a website url here
so i am just going to grab my website
url
and clear that one more time and paste
it here
and perfect so the page loaded so if i
go back to events manager i should get a
pageview event
and it's perfect so we're seeing a page
event so if you're following along and
you're not receiving a page event well
first of all i recommend that you use
google chrome for doing things like this
and if you're using google chrome and
still you're not getting that page event
go back to your website and download
this chrome extension here it's called
the facebook pixel helper we'll leave
the link in the description of this
video
but facebook pixel helper will help you
tell you if there's an event that was
sent to facebook so if i open this up
here i can actually see that there was a
pageview event that was sent and i can
also see that event to what pixel id it
was sent because sometimes what i'll
notice when i'm not getting a page event
is actually what the client did is that
they've set this up but they're actually
using the wrong pixel id or they gave me
access to the uh wrong pixel and events
manager so make sure that the pixel if
you are seeing a page event here make
sure the pixel id matches the one you
have in events manager and the way you
can verify that is just by hitting
overview here and then you're gonna see
the pixel id here and it's also in the
url in case you want a different way of
accessing it but going back to test
event make sure that facebook pixel is
installed properly on the website and
again the way you can double check that
is just by clicking this little chrome
extension here which will give you the
idea and exactly what was the event that
was sent to facebook going back to
events manager here what i really want
to do is go through the entire purchase
process and make sure that all the
events that i care about are showing up
here but also showing up with no error
message so what i actually did prior to
this video is i've tweaked my setup to
make sure that i have errors because i'm
gonna show you exactly what it looks
like when you have an error and also how
to fix them so as you can probably see i
already have three of them here so we
have invalid purchase currency code so
i'm going to show you how to fix that
i'm also going to show you how to fix
the purchase value and this one is
really really common so this is just
giving me a warning saying there's a new
domain setting data so and i'm pretty
confident to say that 99 of you guys
watching this video that have been
running ads for at least a year have
seen this warning here so i'm gonna show
you how to fix all that now let's go
back to our test event tab and i'm gonna
go through the purchase process so
uh let's click this t-shirt now i will
click on add to cart and i don't have
all all the events that an e-commerce
store would want to track uh this is
just a demo but i do have the add to
cart i am sending that so if we go back
to events manager we can see that we
actually sent an ad to cart event now we
can see that what happened
is i was that's right so that's my home
page now when i click the image of the
t-shirt that's a custom event right
because someone clicked i consider that
website engagement and that's again a
custom event that i've created you don't
need to have this event now the view
content the way i usually structure an
e-commerce store is i'll trigger to view
content when reviewing a product so if
we're viewing we're on a specific
product page and that's when i'll set a
view content event so we're viewing that
content and again we are viewing on the
page so that's where we're getting
another uh pageview event and here i
click the add to cart button right so
that's a click so that sends a website
engagement but the add to cart button
also sends a not to cart event so here
we have all the different events they're
all coming in right so it's right here
and you can always open them to see
exactly what came with the event so we
have the url the event id the action
source and then we have some advanced
matching parameters like the ip address
and a new user agent so i'm going to
keep going to my website and click on
view cart now now i don't believe i'm
sending a view cart
event so i'm going to check out and i'm
also not sending a checkout event but if
you are again go back to events manager
and make sure that they've came through
properly so now i'm just going to put in
my information here and i'm actually
going to try to check out as a guest and
scroll down and i'm going to hit the pay
now button when i hit the pay now button
is gonna obviously this is a fake credit
card and fake information so it's not
gonna be a real purchase but it's gonna
pretend like it's a real one and still
send that purchase event to facebook and
i've made a mistake on purpose for that
purchase event i've sent to purchase
events so we're going to see an error
message and also i think we're going to
see an error message for the value in
the currency so we'll you'll see that in
just a second so i'm hit pay now
great so here we go a purchase let's go
back to events manager and we can see
that there's a purchase event here and
we can see again that purchase event
appeared here so like i said i sent it
twice
because i was actually hoping to trigger
something in my diagnosis tab here
saying that i have two different
purchases but it looks like it did not
trigger it it might actually appear here
in a few days um so i'm just going to
delete the
duplicated one but let's go back to test
events and i want to open this up just
to show you that in the purchase event
i'm actually sending a value in your
currency and as you can see there's
nothing set here and same thing with
this one here there's actually nothing
set so this will actually give me an
error inside here and that's exactly
what we're seeing here so we're seeing
that the purchase currency is missing
right so back to test event
we can see that we're missing the
purchase currency and we're also missing
the purchase value so those two things
are really important if you're sending
something like a purchase event if
you're using a lead event you actually
don't need to add a lead value or a lead
currency if you know exactly what a lead
is worth to you you can add that value
so that when you're looking at your
campaigns you're looking at potentially
return on ad spend you can make better
decisions because you'll have that data
available since this is an e-commerce
store i strongly recommend that we add a
value and a currency and it's also
giving us a warning here because i don't
have anything so i'm going to show you
how to fix that in just a second but we
can see that all the events are coming
in properly except that purchase event
right it came in twice and it happens
often when i'm working with the new
client i'm reviewing their pixel and how
things are sending and i'm seeing that
we're getting actually a purchase event
twice so what usually happened is they
had one sort of like setup that was
sending the purchase event it could
potentially be google tag manager but
someone back in the days also went here
and
created a an event for the purchase
event using this tool here so they were
actually duplicating the results so
things like that do happen um especially
when there's a lot of people working on
the same thing and not so much
communication that's why it's really
really important to test your pixel and
make sure that everything is coming in
properly so whenever you see or you
think something feels off just double
check it could potentially also just be
something that changed on your website
and now whatever triggered your purchase
event is not working properly anymore so
that's why i strongly recommend that you
go through this step you do this often
especially before like a big sale like
black friday so going back to this event
we can see that everything's working
well except for the purchase event that
is being sent twice and diagnosis now we
can see that we have i believe like
three different uh warnings so let's go
ahead and fix that right now so let's
start by fixing this warning message
right here so new domain sending data so
your pixel recently started sending
events from this domain um so don't
freak out if you see that usually what
it is it's like a plug-in or maybe like
a shopify app that is also sending an
event to the facebook pixel and that's
why you have to understand and look and
see what is currently sending data to
your facebook pixel so if you're using
wordpress or shopify or any other
platform go through your apps and see
which one are actually sending
information to the pixel and once you
have an understanding of what you want
to block and what you want to keep click
the manage traffic permissions button
right here and it's going to bring you
to this page if ever you want to go back
there eventually
so we were at diagnostics right here you
can always hit settings and it's going
to bring you to the same place and if we
scroll down all the way to the bottom
we're going to see something here that
says traffic permission so what we're
doing here is we're going to be creating
an allow list meaning it's only going to
accept data coming from specific domains
so if i click on create allow list
now i can actually type the domain name
right here or i can actually choose one
that is showing me right here so i'm
actually gonna just pick this one here
and what it's gonna do is gonna say okay
well it's only gonna accept events from
this domain but also any events coming
from any sort of sub domains from this
root domain so if i hit confirm
it's now accepting
all sort of events coming from this
domain now you might be wondering okay
well what about if i'm sending uh events
through zapier like if i if i put my
website domain here will it block those
events then at this point i would
recommend you to go through your top
domain traffic and then add zapier's
domain and same thing if you're doing uh
let's say server side tracking and you
decided to not use a custom sub domain
as part of like your server you're using
the server that google gives you when
you create a server container inside
google tag manager for example well you
would probably want to go here under
your top domain traffic source and just
add that as part of one of the traffic
source that you allow to send data to
your pixel so if you don't do that if
you don't do your domain then you might
actually not be receiving uh your events
that you want to see in events manager
so really really important that you
double check what are the different
domain sending events to your facebook
pixel and then which one you want to
accept so just double check those things
and then you'll be good to go and then
once that's good you can go back to
diagnosis and then hit that little
button here and click ignore now it
should be good and then it's even if it
comes back in the future it's fine
because you've created an allow list but
maybe if you start using a different
tool you might want to just go back to
your settings and then uh update that
allow list to include that new domain
now let me show you how to fix those two
other warning messages here so the way
i've set this up is i'm actually using
google tag manager to send all my events
to my facebook pixel so i'm going to
open up google tag manager and here i'm
going to go into tags and if ever you
are seeing let's say the same warnings
and you're not using google tag manager
like no worries so the process is going
to be a little bit different but at the
end of the day you're doing the same
thing what you're doing is you're adding
a currency value and i'm going to show
you uh how i'm adding inside google tag
manager and then you want to add a
purchase value because those were the
error message that i was getting so if i
go to tags that's actually the one well
first of all that's the extra tag and
that's also the one that doesn't have
any sort of values so if i open this up
and i'm scrolling down to object
properties here i have an invalid value
so i actually just added this to see if
it would trigger another like warning
message but it looks like it didn't so
i'm just going to remove it but here we
have the currency and the value
now the currency i can probably just set
this up to you let's say usd depending
on if you are using more than one
currency on your site you might want to
actually create a variable here so for a
lot of e-commerce store when they
receive someone from let's say canada
they're going to want to make sure to
change a currency to canadian dollar and
then that should also reflect in the
event that you're sending right it
should be cad and not let's say usd so
if you are using more than one currency
i strongly recommend that you create a
custom variable that variable could
either be a data layer variable or
sometimes even a javascript variable
i'll let you decide that i would
recommend that you use the data layer
variable on the javascript variable but
it's fully up to you doesn't matter how
you do it same thing with the value you
can set a set value so let's say forty
dollars but even if you only sell one
product what happens if someone buys
that product that let's say it was in
your ad or on your website but they buy
the same one for let's say their friends
so now they have two products in their
cart well the value won't be forty
dollars it will be eighty dollars so
that's why if you're using a static
value it's good like you're going to get
an idea of your return on ad spend when
you're looking at your ads and your
campaigns but you it won't really really
be accurate so that's why i strongly
recommend that you create a variable so
just like the currency variable it could
be data layer or it could be javascript
but i strongly recommend that you create
a variable for that so i'm just going to
add usd here
since this is a demo and i'm going to
add a value of 40
and i can just hit save
and then let's say once i've made those
changes and i'm pretty positive that
everything is working properly then i
could go ahead and publish my tag and
what i'll actually do is i'll go through
the process again and i would also make
sure that i'm deleting that extra
purchase
event that i was sending so i could
delete this one so that i only have one
purchase event firing when someone makes
a purchase but as soon as you're done
your changes you've made your
improvements go through the purchase
process again and make sure that now all
the events are coming in and when
they're coming in it's coming in with a
value and a currency and all the
different parameters that you
potentially want to be sending to
facebook all right thanks cedric for
this great information now you should
have gotten rid of all the pesky errors
in your implementation right so good
data is coming in but how do you now
analyze the results of your campaigns
well cedric did just that in this video
right over there which you should
definitely check out now from everybody
here at measureschool happy measuring