I'm trying to track via a Facebook pixel when users enrol on a course. I've had a look at this post but it only got me so far... I'm going to link a few things as I explain to help future readers who might be trying this.
- Installed Facebook Pixel - added the code from Facebook Events Manager to the header at additionalhtml in Moodle's admin settings.
- Confirmed the Facebook Pixel is working - by using a Chrome extension called Tag Assistant (by Google). I had to disable my ad blocker across the entire domain for it to function correctly.
I now need to add a conversion event so that I can tell when users have completed purchasing a course via the PayPal plugin. I've tried:
- Using Facebook Event codes in the body of my site but this appeared to totally lock me out (did this on a test server in January and had to scrap it). Can't remember the error code but it did not place nice with Moodle - absolutely nothing loaded on the page. Hesitant to try again without some advice there...
- Create a custom conversion using URL recognition of the PayPal enrolment return URL (http://yoursite.com/enrol/paypal/return.php?id=#) as described in this post, but it doesn't seem to fire.
I wondered if anyone had any advice?