ThemeShaper Forums » Thematic

[closed]

Adding a Google Remarketing tag to my homepage

(4 posts)
  • Started 2 years ago by billrose
  • Latest reply from lastraw
  • This topic is not resolved
  1. Hi guys. I'm trying to add a Google Remarketing pixel to my homepage. I found a plugin that allows me to do this for Posts & Pages, but not for the homepage itself (http://www.recapturist.com)

    Can someone please help me figure out how to add the following pixel to my homepage:

    <!-- Google Code for Recapturist.com Visitors Remarketing List -->
    <script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = 1070370795;
    var google_conversion_language = "en";
    var google_conversion_format = "3";
    var google_conversion_color = "ffffff";
    var google_conversion_label = "i1cCCMmK7QMQ65-y_gM";
    var google_conversion_value = 0;
    /* ]]> */
    </script>
    <script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">
    </script>
    <noscript>
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/1070370795/?label=i1cCCMmK7QMQ65-y_gM&amp;guid=ON&amp;script=0"/>
    </div>
    </noscript>

    The only guidance Google giver regarding where in the code to place the pixel is "between the body tags (<body></body>) of the page."

    Thanks for the help!

    Bill
    http://www.recapturist.com

    Posted 2 years ago #
  2. add it to a hook

    function kia_inject_code(){
    //paste your code here
    }
    add_action('thematic_before','kia_inject_code');
    Posted 2 years ago #
  3. Sorry, I'm a complete amateur when it comes to coding. Where specifically should I add that hook? Thanks!

    Posted 2 years ago #
  4. you add it to your function.php file in your child theme between the

    <?php

    and the

    ?>

    Posted 2 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.