Yesterday I created a plugin to track the user actions on the client-side and send them to a Facebook Pixel. I hope it will be helpful. If you like the plugin, don't mind giving it a star on GitHub.
How The Facebook Pixel Works
When someone visits your website and takes an action (for example, buying something), the Facebook pixel is triggered and reports this action. This way, you'll know when a customer took an action after seeing your Facebook ad. You'll also be able to reach this customer again by using a Custom Audience. When more and more conversions happen on your website, Facebook gets better at delivering your ads to people who are more likely to take certain actions. This is called conversion optimisation.
Installation
npm install nodebb-plugin-facebook-pixel
Supported Hooks
action:ajaxify.end
action:ajaxify.contentLoaded
action:composer.topic.new
action:composer.post.edit
action:composer.addQuote
action:composer.post.new
action:composer.addQuote
action:posts.loaded
action:topics.loaded
action:category.loaded
action:app.loggedIn
action:app:loggedOut
action:profile.update
action:search.fillOutForm
action:infinitescroll.loadmore
action:chat.renamed
action:chat.loaded
action:chat.closed
action:chat.minimized
action:chat.sent
action:chat.received
GitHub Repository
https://github.com/Doonloo/nodebb-plugin-facebook-pixel