Custom Facebook Pixel Code

Hello,

I want to add a Facebook pixel to the INLINE code of my button (since the button does not redirect to another page)

Here’s what Facebook is telling me to do. (I don’t have to create the button just add the script to the button so the pixel fires when it is clicked)

Can anyone help with telling me how to integrate this code into the button?

<button id=“contactButton”>Contact</button>

<script type=“text/javascript”>

$( ‘#$contactButton’ ).click(function() {

insert_event_code_here ;

</script>


Here is my public share link: LINK
(how to access public share link)

1 Like