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 %}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...