Hi,
I need to put a google tracking pixel on a specific page on the the acamuseum.ca site
Google give me apiece of code for the header and some for the body,
I was going to use this:
function custom_code(){
if ( is_page( 1122 )) {
?>
CODE HERE
<?php
}
}
add_action(‘wp_footer’, ‘custom_code’);
then changing ‘wp_footer’ to "wp_head’
For the body code do I add another function for the body like this
function custom_code(){
if ( is_page( 1122 )) {
?>
CODE HERE
<?php
}
}
add_action(‘wp_body’, ‘custom_code’);
or is the code different?
Appreciate any advice you may have,
Mike