Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1298635
    giveitlegs
    Participant

    Greetings support peeps! I know there’s a bunch of other threads on this, and I hate to be a pain, but I tried their solutions already and they did not work. 🙁

    I’m trying to add the Google Remarketing Tag to our site.

    URL: http://fit.farm

    Just to get a few things out of the way…

    1 – Yes, I am using a CHILD X Theme

    2 – Yes, it is activated (see screenshot uploaded)…

    3 – Yes, I have inserted the Google Remarketing Js code into the functions.php file from the WP editor (see screenshot)

    (I think I did it correctly, but if not – please tell me, I’m all ears. 🙂 )

    HERE IS MY GOOGLE REMARKETING TAG (RAW)

    
    <!-- Google Code for Remarketing Tag -->
    <!--------------------------------------------------
    Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
    --------------------------------------------------->
    <script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = 877176603;
    var google_custom_params = window.google_tag_params;
    var google_remarketing_only = true;
    /* ]]> */
    </script>
    <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
    </script>
    <noscript>
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/877176603/?guid=ON&script=0"/>
    </div>
    </noscript>
    

    So, basically Google just cannot see the tag functioning,… and I am not sure why…

    Any help is appreciated. (following up immediately with a private reply with cred info, since that’s likely where this support thread is headed)…

    thnx!

    #1298645
    giveitlegs
    Participant
    This reply has been marked as private.
    #1298725
    Darshana
    Moderator

    Hi there,

    You can add the following code into your child theme’s functions.php file.

    
    // Add Google Tag Manager Code
    // =============================================================================
    function add_google_tag_manager_code(){
    ?>
    
    <!-- Google Tag Manager -->
    
    <script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = 877176603;
    var google_custom_params = window.google_tag_params;
    var google_remarketing_only = true;
    /* ]]> */
    </script>
    <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
    </script>
    <noscript>
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/877176603/?guid=ON&script=0"/>
    </div>
    </noscript>
    
    <!-- End Google Tag Manager -->
    
    <?php 
    }
    add_action( 'x_before_site_begin', 'add_google_tag_manager_code' );
    // End Add Google Tag Manager Code
    

    Hope that helps.

    #1324415
    giveitlegs
    Participant

    That totally did it. Thanks for you help! 😉

    Cheers

    #1324504
    Prasant Rai
    Moderator

    You are most welcome. 🙂

  • <script> jQuery(function($){ $("#no-reply-1298635 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>