This is part 1.2. of the tutorial. If you started here, look for the part 1.1.
a. Requirements
i. GTM Client Side installed
ii. GTM Publisher access
iii. FB Base pixel activated under the Events Manager
iv. Optional: FB Pixel Helper installed plugin
v. FB Events Manager and access to the production pixel
vi. A Lead Form (Wordpress Elementor)
b. Steps
i. Set FB Base Pixel and PageView Event
1. Add the FB Base Pixel
a. Copy it from Github:
https://github.com/jjbernalgarcia/adv...
b. Add the code in a Custom HTML Tag
c. Set the All Pages trigger
ii. Add FB Lead Event
1. Copy it from Github:
https://github.com/jjbernalgarcia/adv...
2. Add the code in a Custom HTML Tag
3. Test the form and determine what is the best trigger
iii. Setup an Advanced Matching
1. Create a User-Provided data variable and set automatic collection
2. Custom HTML User-provided First Party Session Cookie - Tag
a. Copy the code from Github:
https://github.com/jjbernalgarcia/use...
3. Create the GTM First party Variable Email from the Session Cookie
4. Create the GTM First party Variable Phone from the Session Cookie
iv. Audit + Debugging
1. Go to FB Events Manager and activate the test for client-side events
2. Activate GTM Client side Tag Assistant
3. Test the conversions
4. Identify the PageView, Lead, and Advanced Matching setup