Streaming live at 10am (PST)

Facebook event pixel implementation in a button


#1

Hi, I'm working on installing the Facebook pixel and have a simple question:

I'd like to install the "Initiate Checkout" pixel to fire when a user clicks a button on my header. Where should that event pixel code go?

Thank you!


#2

If that button on the header changes the URL (navigates to the new page) I'd put the pixel there.


#3

Yeah, unfortunately it navigates to an outside URL so I can't change the
code on the landing page. Any other ideas for implementing code to track
button clicks? Thank you!


#4

Hey @jbdental,

Did you find any solution for that?


#5

You can add Google Tag Manager code to track custom events like link clicks.

See

Tracking Link Click on Google Tag Manager

How to Capture Link Text on Event Click with Google Tag Manager

Google tag manager Click tracking not working

How to configure Google Tag Manager to track link clicks on the same page