Articles on: Integrations

How to install a Facebook Pixel EVENT on the FLOATING WHATSAPP BUTTON

To install a Facebook event on the floating WhatsApp button, you'll first need to decide which event you'd like to be fired when a visitor clicks the button.


To help you out, here's the list of Facebook events with their specifications -> https://www.facebook.com/business/help/402791146561655?id=1205376682832142


After that, you'll need to follow the tutorial below:


  1. Sign in to GreatPages and open the page editor;



  1. Next, click the gear icon in the top right corner of the screen;



  1. When you do this, a menu will open with the "Javascript & CSS" option. Click on it;



  1. After that, click to "Adicionar código"



  1. On the screen that opens, add a name for the code, select the code type "Marketing", then remove the sample code and paste the code below into the text field (just like in the example).
<script>
$(document).on('click','.float',function(){
fbq('track','PageView');
});
</script>



In this code, you'll only need to change the line with the event that will be fired, replacing it with the event you'd like to track.


For example: In my code I used the "Lead" event, but if I wanted to fire the contact event, I would change the word "Lead" to "Contact" (as indicated in Facebook's specifications).


And finally, click to "Salvar"!

Updated on: 08/01/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!