0

We're on Drupal 7.69 and CiviCRM 5.13.x.

One of our clients want to add facebook tracking pixel codes to the membership confirmation page after payment.

We are using the Facebook Tracking Pixel Drupal module (https://www.drupal.org/project/facebook_tracking_pixel) to add the base tracking for the website and for webform confirmation pages. Would someone be able to help inform me on using the same module for CiviCRM confirmation pages?

Thanks

1

2 Answers 2

1

You can add the code using one of the below method

  1. Use buildform hook to add JS code using region method.
  2. Add pixel code in CRM/Contribute/For/Contribution/ThankYou.extra.tpl in your custom template directory.

Note: Won't be difficult to make it generalized for each contribution page and also have it extended to event registration.

0

So instead of using the Drupal facebook pixel tracking module or customising the Thank You tpl file, we decided to use Google Tag Manager to create tags for Facebook pixel.

That way, we were able to set up tracking for pixel throughout the website and also on the Civi Pay Now buttons to capture payments.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.