> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://ajuda.greatsoftwares.com.br/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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;

![](https://storage.crisp.chat/users/helpdesk/website/-/a/6/a/b/a6ab90d8350d6000/click-desing_c2ljdo.png =662xauto)

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

![](https://storage.crisp.chat/users/helpdesk/website/-/a/6/a/b/a6ab90d8350d6000/ingrenagem-click_buegv9.png)

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

![](https://storage.crisp.chat/users/helpdesk/website/-/a/6/a/b/a6ab90d8350d6000/clickjavacss_va5gjk.png =772xauto)

4. After that, click to **"**Add code**"**

![](https://storage.crisp.chat/users/helpdesk/website/-/a/6/a/b/a6ab90d8350d6000/image_1v7it0q.png =441xauto)

5. 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>
```

![](https://storage.crisp.chat/users/helpdesk/website/-/a/6/a/b/a6ab90d8350d6000/image_1ve2xyk.png =379xauto)

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 **"Save"**! :)  