How to use Facebook Pixel with Convertful

Tracking Convertful Events #

With Convertful you may use custom JavaScript code to track events performed with your widget. There are three main event types you can track:

  • Widget Display -- a moment when widget appears on the screen.
  • Optins -- when a visitor press subscription button. 
  • Button Clicks -- when a visitor interacts with the redirect button, or other button types.

Tracking Widgets Displays #

To add a JavaScript code to track widget display go to your widget's Display Rules tab:

7.png

Scroll it down and activate the Tracking Pixel Code switch: 

8.png

The code you enter in this canvas will run with the widget display.

Tracking Optins #

When editing widget, click the submit button to open its settings and choose On Submit Actions after: 

9.png

Add action called Execute JavaScript:

10.png

Being added to the submit button, this action will run the JavaScript you specify when a visitor successfully subscribed to the widget. Note that this action only starts with the successful submit. For example, if a visitor hasn't yet filled in the required input fields, this action won't trigger on click.

Tracking Buttons Clicks #

When editing widget, click your Links, Close, or Custom button to open its settings and choose On Click Actions after: 

11.png

Add action called Execute JavaScript:

10.png

This action will run the JavaScript you specify when a visitor clicks this button.

Facebook Pixel #

To create a Facebook Pixel go to https://www.facebook.com/events_manager and press the Set Up Pixel button.

And pick the option Manually Install the Code Yourself:

 1.png

Installing Facebook Pixel #

To install Facebook Pixel on your site with Convertful widget, go to your widget's Display Rules tab, scroll it down and activate the Tracking Pixel Code switch:  

2.png

In this canvas, paste the part of pixel code, starting with ' !function... ' string, ending with the ' fbq('init' ... ); '. For example:

3.png

Tracking Widgets’ Displays #

To track the widget display with Facebook Pixel, open your widget's Display Rules tab, scroll it down and activate the Tracking Pixel Code switch:

2.png

Paste the part of your Facebook Pixel code starting with ' !function(...) ' and ending with ' fbq('track', ...);

4.png

If you want to use one Facebook Pixel to track displays of different widgets, you may replace the last string: 

fbq('track', 'PageView');

with the code, identifying this exact event and widget: 

fbq('track', 'ViewContent', {content_name: 'My widget'});

Tracking Optins #

Go to your widget's Display Rules tab, scroll it down and activate the Tracking Pixel Code switch:  

2.png

In this canvas, paste the part of pixel code, starting with ' !function... ' string, ending with the ' fbq('init' ... ); '. For example:

3.png

Next, go to your Facebook Pixel Add your event step:

5.png

Activate the Subscribe switch and choose Track Event on Inline Action tab. Here you'll need a string of code between the <script> tags: 

12.png

Now return to your widget's Design tab, click the subscription button to open its settings and click On submit actions:

13.png

Add the Execute JavaScript action and paste click tracking code from Facebook Pixel: 

14.png 

Tracking Buttons Clicks #

Go to your widget's Display Rules tab, scroll it down and activate the Tracking Pixel Code switch:  

2.png

In this canvas, paste the part of pixel code, starting with ' !function... ' string, ending with the ' fbq('init' ... ); '. For example:

3.png

Next, go to your Facebook Pixel Add your event step:

5.png

Activate the Subscribe switch and choose Track Event on Inline Action tab. Here you'll need a string of code between the <script> tags: 

12.png

Now return to your widget's Design tab, click the subscription button to open its settings and click On submit actions:

13.png

Add the Execute JavaScript action and paste click tracking code from Facebook Pixel: 

14.png 

Verifying That Pixel Works #

To test your pixel working correctly you can use a specific Google Chrome browser extension called Facebook Pixel Helper.

Once you install and activate it, every time tracking code is loaded or used, you'll see a notification icon about it. 

6.png