• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Adding FaceBook pixel custom event

Adding FaceBook pixel custom event 6 years 3 months ago #37680

  • rakeshy
  • rakeshy's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 90
  • Thank you received: 3
When adding this script to the CSS and Javascript field of the form:
<script>
  fbq('track', 'Purchase', {
    value: 1,
    currency: 'EUR',
    content_type: 'Ticket',
  });
</script>

I get this error about the Pixel:
Pixel Did Not Load
This error means that the Pixel Helper found what looks to be Facebook pixel code on your site, but the actual HTTP call was never made.

This could typically due to an error in the code, but could also occur if the pixel fires on a dynamic event (e.g. on a button click).

In that case, the error will disappear upon clicking on the button.


It seems the script is not triggered properly.
How do I solve this?

The form is loaded properly in the frontend.
Last Edit: 6 years 3 months ago by rakeshy.
The administrator has disabled public write access.

Adding FaceBook pixel custom event 5 years 3 months ago #38671

  • rakeshy
  • rakeshy's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 90
  • Thank you received: 3
Added the FB head pixel code [2] to the head code field of my template to create a FB Lead load.

Then with the Sourcerer plugin and the Articles Anywhere I managed to create this
https://www.regularlabs.com/extensions/sourcerer/tutorial
https://www.regularlabs.com/extensions/articlesanywhere


1. Create 1 Joomla article with the code from FB START (Lead, etc.) within the Sourcerer code:
{source}
<!-- You can place html anywhere within the source tags -->
 
 
<script language="javascript" type="text/javascript">
fbq('track', 'Purchase');
 
</script>
 
{/source}
2. Create another article with the code from FB END (Lead, etc) within the Sourcerer code:
{source}
<!-- You can place html anywhere within the source tags -->
 
 
<script language="javascript" type="text/javascript">
YOUR INFORMATION;<script>
 
{/source}

Within the RSform Form create two Free Text fields. Loading the two Joomla articles you just created.
One at top of form and other at the end using the Articles Anywhere code:
{article JARTICLENR}[text]{/article}

Perhaps there is a more easy way, but this is what worked for me.

Use the Pixel Helper plugin for Chrome from FB to check if the pixel loads
https://developers.facebook.com/docs/facebook-pixel/support/pixel-helper
Last Edit: 5 years 3 months ago by rakeshy.
The administrator has disabled public write access.

Adding FaceBook pixel custom event 5 years 3 months ago #38674

  • rakeshy
  • rakeshy's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 90
  • Thank you received: 3
The more easy way is to add it to the RS Form Propteries PHP Scripts:
Add to Script called on form display:
echo "<script>
FB START (Lead, etc.) 
</script>";

Add to Script called after form has been processed:
echo "<script>YOUR INFORMATION;<script>";
Last Edit: 5 years 3 months ago by rakeshy.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!