Okay
  Public Ticket #2111100
Tracking Facebook Pixel on button
Closed

Comments

  •  16
    Roxane started the conversation

    Hello, 


    I am struggling to track the visitor of my website with the Facebook Pixels. As the booking process does not open new url webpage, I would like to add a pixel that track when people click on the "Réserver" button (see picture). I found that is possible (see picture 2) do you know if someone already did this with the amelia plugin ? Do you know what code I need to enter between the different code proposed in the picture ? I have no skills in development. 

    Considering that the pixel is called "VuePageReserver" and the button "Réserver"

    If you don't have time for this, I would totally understand but it might servie for others. 

    Thank you very much, 


    Roxane 

  •  472
    Isidora replied

    Hi Roxane,
    Thank you for your purchase.

    Sorry for late response. 

    We are located in Serbia and our working time is from 10:00 to 17:00 CET. business days.

    We don't have any hook on this button that you need.

    A lot of users that require tracking from Google use  hooks like beforeConfirmedBooking that will be triggered when your customers confirm booking.(clicking on Confirm button) You can set that redirect URL that you need like on this script(we use https://www.google.com as example, but you will replace this with your own URL)

    <script>
    window.beforeConfirmedBooking = function()
    {
    window.location.href = "https://www.google.com";
    };
    </script>

    Please insert this script on page where you insert Amelia shortcode.

    For Facebook Pixel they use the same hook and then insert function provided from Facebook pixel(in your case this)

    <script>
    window.beforeConfirmedBooking = function()
    {
    fbq('track', 'Purchase');
    };
    </script>

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  •  16
    Roxane replied

    Hello Milan, 


    Thank you very much for these codes ! 

    I added them in my booking pages, however it keeps on charging so I don't know if the pixel has worked.

    "Merci de patienter" = "please wait".

    What do you think ?


  •  472
    Isidora replied

    Hi Roxane,

    After clicking on confirm button it will be executed hooks that we provide to you and everything that is in it will be executed. We are not familiar with Facebook Pixel tracking program so you need to check are those conversions are trucked on Facebook or whatever where you track this conversion data.

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables