Created
April 26, 2019 04:07
-
-
Save KaineLabs/80c7fe3111a59474bdcfd6c0c27adfdd to your computer and use it in GitHub Desktop.
Add Facebook Pixel Tracking After Account Registration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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