Jump to content

Question

Posted

Hi,

I want to set up Facebook pixel on my blesta installation but I'm having a problem.

I have inserted the Pixel in the file /structure.pdt between the <header> like Facebook says but it's not calling the events like it should. I'm doing all this following the instructions on this link https://www.facebook.com/business/help/402791146561655?id=1205376682832142 

If anyone lets me know how to set up Facebook Pixel it would be great.

Thank you,

Gabriel

2 answers to this question

Recommended Posts

  • 0
Posted

Make sure you're editing /app/views/client/bootstrap/structure.pdt for the client area and front facing pages. If you've installed a custom template, then you may need to replace the part of the path including "bootstrap" with the name of your template. Also check that you are not entering the code in the middle of a conditional, which would only be displayed during certain conditions.

  • 0
Posted

If you want Facebook Pixel Conversion Tracking Then try this

Facebook Pixel Code under Packages > Order Forms > Settings tab

<!-- Facebook Pixel Code -->
<!-- End Facebook Pixel Code -->
{% if order_page == "checkout/complete" %}

fbq('track','Purchase',{value:{{invoice.total}}, currency: '{{currency}}'});
{% endif %}

 

If want to share more info with Facebook you can try this:


<!-- Facebook Pixel Code -->
<!-- End Facebook Pixel Code -->

{% if order_page == "signup/index" %}
fbq('track','RegisterAccount');

{% endif %}
{% if order_page == "config/preconfig" %}

fbq('track','ConfigurePackage');
{% endif %} {% if order_page == "checkout/complete" %}
fbq('track','Purchase',{value:{{invoice.total}}, currency: '{{currency}}'});
{% endif %}

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...