Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaineLabs/80c7fe3111a59474bdcfd6c0c27adfdd to your computer and use it in GitHub Desktop.
Save KaineLabs/80c7fe3111a59474bdcfd6c0c27adfdd to your computer and use it in GitHub Desktop.
Add Facebook Pixel Tracking After Account Registration
<?php
/**
* Add Pixel Tracking After Account Registration.
* Ps: Code Added to the thank you fo registration page.
*/
function yzc_add_facebox_pixel_after_registration() {
?>
<script>
fbq('track', 'Purchase', {currency: "USD", value: 30.00});
</script>
<?php
}
add_action( 'bp_before_registration_confirmed', 'yzc_add_facebox_pixel_after_registration' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment