Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #814639

    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

    #814641

    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

    #814642

    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

    #814653

    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

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.