adding facebook pixel to button

New Member
1 0 0

Hi Everybody!

I'm trying to add a custom facebook pixel to track when users get re-directed to AirBnB website. Here's what I got so far.


How are facebook pixels added to myShopify pages? How to add the event listener to track button clicks? Here was my attempt at the product page:

<div class="airbnb-embed-frame" data-id="742451" data-view="experience_booking" data-title_and_info="true"><a href="" onclick="onClick()">Ver en Airbnb</a><a href="" rel="nofollow"></a><script async="" src=""></script></div>