Created
January 22, 2022 20:08
-
-
Save cesgarma/0d868c7d85a3ee338d1aa93622b9778c to your computer and use it in GitHub Desktop.
Add Facebook Pixel to Wordpress using child theme functions.php
This file contains hidden or 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 | |
// Begin Facebook Pixel Code | |
function my_facebook_pixel_code(){ | |
?> | |
<!-- Your Facebook Pixel Code goes here --> | |
<?php | |
} | |
add_action( 'wp_head', 'my_facebook_pixel_code' ); | |
// End Facebook Pixel Code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment