Hi,
I’m trying to insert some Google conversion tracking code into a single page on my website. Google states to insert it into the Body code.
I can’t see how to do this without inserting it into every page via the header.
Is there any way of doing this?
Kind Regards,
Tim
Hey Tim,
Please add following code to Functions.php file in Appearance > Editor and change page ID as needed
function av_custom_gc(){
if(is_page(59)){
?>
// YOUR CODE GOES HERE
<?php
}}
add_action('wp_footer', 'av_custom_gc');
Best regards,
Yigit
Hi Yigit,
Thank you for the super quick response.
Could you tell me where the page ID is located? I was looking for it earlier but couldn’t find it anywhere.
Kind Regards,
Tim
Hi Tim,
There are few ways however i think the easiest way for you to find your page’s ID would be to edit your page and find page ID in in address bar. In this example, it is 731 – http://i.imgur.com/YWuRHg7.png :)
Best regards,
Yigit