- Published on
How to add Facebook activite to your Website (by using Tag Manager)
- Authors
- Name
- Emre Koc
- @58emrecan
Hello Today I'm going to explain to you How to add Facebook activite to your Website using Tag Manager. It's really basic way and I highly recommend you during adding activite to your website.
Before getting started we need a Facebook ads account and Google Tag Manager account. Additionally you have to add pixel code to your website. You can use Tag manager.
Learn more at the Facebook Pixel
I assume you have already created one.
Sign in your Facebook Ads account. Go to Ads Panel.
This is general view from Facebook Ads Manager Panel. Three category and there are hierarcy
- Campaign
- Adset
- Ad
But we use all of these for ads. now we are doing different things.
you are going to see sidebar and there are 3 lines. Click there and open Events Manager.
you need to go your pixel source to track action on you website.
this is my pixel code that I set up to my website. I can track all actions in here.
after this step we are going to go Tag Manager account. To create tags and trigger for integration.
Give a name your tag.
Normally Facebook is not google product that's why we would click "discover more types" but at this point we can create a Custom HTML
I code this " fbq('trackCustom', 'About clicked'); " script. Save please.
go to tag manager preview mode for creating a trigger. Don't forget we try to track just about page.
please don't confuse your head with about page that is not fired. I have already created one for GA4 event
Learn more at the GA4
Okey I continue
Go to website and click the about page
and please review the the variable side. Because we need it for trigger.
Go to tag manager and open your last FB tags to create a trigger.
go to trigger part and click the plus.
Click the all elements and we need to choose some clikcs. Because we are interested in about page tracking.
Go to tag assistant part. review the variable section.
we are going to use click URL
Okey again go to trigger part and determine proper trigger. I choose "click URL"
Finally submit it and publish please
now it's time to control.
it's fired so that means it's working very well :))