Title: tracking data
Last modified: April 25, 2022

---

# tracking data

 *  Resolved [aidaasyafiqahh](https://wordpress.org/support/users/aidaasyafiqahh/)
 * (@aidaasyafiqahh)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/tracking-data-4/)
 * Hi,
    I want to add this code to a specific page but I’m not sure how to do it.
 * <script>
    fbq(‘track’, ‘Purchase’); </script>
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftracking-data-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [PixelYourSite](https://wordpress.org/support/users/pixelyoursite/)
 * (@pixelyoursite)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/tracking-data-4/#post-15587562)
 * I will start by saying that it’s probably not a good idea to add it.
 * If you need to fire any events when using our plugin, do it so from the Events
   page. This video can help: [https://www.youtube.com/watch?v=kEp5BDg7dP0](https://www.youtube.com/watch?v=kEp5BDg7dP0)
 * I also want to mention that if you use WooCommerce, we fire the Purchase event
   automatically.
 *  Thread Starter [aidaasyafiqahh](https://wordpress.org/support/users/aidaasyafiqahh/)
 * (@aidaasyafiqahh)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/tracking-data-4/#post-15598241)
 * Hi,
    Thank you for your help. If I still want to add the script, where should
   I add it?
 *  Plugin Author [PixelYourSite](https://wordpress.org/support/users/pixelyoursite/)
 * (@pixelyoursite)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/tracking-data-4/#post-15598529)
 * Don’t add Facebook Pixel events this way, they won’t work as expected and they
   will create problems!
 * But in general, if you want to add custom scripts, you can use the plugin’s Head
   and Footer option, linked in the right-side menu.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘tracking data’ is closed to new replies.

 * ![](https://ps.w.org/pixelyoursite/assets/icon-256x256.jpg?rev=3178123)
 * [PixelYourSite - Your smart PIXEL (TAG) & API Manager](https://wordpress.org/plugins/pixelyoursite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pixelyoursite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pixelyoursite/)
 * [Active Topics](https://wordpress.org/support/plugin/pixelyoursite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pixelyoursite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pixelyoursite/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [PixelYourSite](https://wordpress.org/support/users/pixelyoursite/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/tracking-data-4/#post-15598529)
 * Status: resolved