Announcement

Collapse
No announcement yet.

Google Remarketing Tag

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Google Remarketing Tag

    Has anyone any experience of applying the Google Remarketing Tag to Sellerdeck?

    The code supplied by the client has these three properties that need populating on a page by page basis (I think.)

    Has anyone done this or is there any guidance as to how to generate the properties with Variables?

    Code:
    <script type="text/javascript">
    var google_tag_params = {
    ecomm_prodid: 'REPLACE_WITH_VALUE',
    ecomm_pagetype: 'REPLACE_WITH_VALUE',
    ecomm_totalvalue: 'REPLACE_WITH_VALUE',
    };
    </script>
    Duncan mentions it briefly here: http://community.sellerdeck.com/showthread.php?t=54174

    Is there any more comprehensive advice?

    Many thanks.
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    #2
    It is actually very simple

    The code needs to be on the product page so needs a blockif - PageType == 'Product Page'

    The product id is ProductID
    Page type 'Product'
    Total value is product price, I think without the £ sign but check on that.

    Here is the code ready to go:

    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Product%20Page%27">
        <script type="text/javascript">
    var google_tag_params = {
    ecomm_prodid: '<actinic:variable name="ProductID" encoding="perl" selectable="false" />',
    ecomm_pagetype: 'Product',
    ecomm_totalvalue: '<actinic:variable name="ProductPriceRaw" encoding="perl" selectable="false" />'
    };
    </script>
    <script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = 123456789;
    var google_conversion_label = "YYYYYYYYYY";
    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/XXXXXXXXXX/?value=0&amp;label=YYYYYYYYYY&amp;guid=ON&amp;script=0"/>
    </div>
    </noscript>
    </actinic:block>
    Any edits/corrections welcome.
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    Comment


      #3
      I am experiencing difficulties getting the code to work. When I paste it into a product page with the actinic blockif, it does not show up to tag assistant and the page source only shows this:

      <!-- 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
      --------------------------------------------------->

      </body>
      <!-- InstanceEnd --></html>

      Does anyone have any idea why this is? BTW, my coding knowledge is pretty much non-existent.

      Comment


        #4
        Hi Ian, I am no Google expert and don't have an adwords account so cannot test fully, I have however pasted the code into one of my test sites and the code seems to appear correctly in "view source".

        www.graphicz.gb.com/site1-skeleton/acatalog/Three-Diamond-Ring-1.html

        The reference to
        pages related to sensitive categories
        is at https://support.google.com/adwordspo...3465#sensitive

        You don't mention your site's URL but could it be triggering Google's response to the code (which you quote) for some reason related to the above reference?
        Jonathan Chappell
        Website Designer
        SellerDeck Website Designer
        Actinic to SellerDeck upgrades
        Graphicz Limited - www.graphicz.co.uk

        Comment


          #5
          I have just found your site (I think) and it sells alcohol.

          This from the Google document I refer to above:
          Restrictions that apply to sensitive categories in interest-based advertising

          When creating remarketing lists or creating your ads, you can't use any sensitive information about site or app visitors. For the purposes of this policy, sensitive information includes:

          interest or participation in adult activities (including alcohol, gambling, adult dating, pornography, etc.)
          Jonathan Chappell
          Website Designer
          SellerDeck Website Designer
          Actinic to SellerDeck upgrades
          Graphicz Limited - www.graphicz.co.uk

          Comment


            #6
            I would replace:
            Code:
            <actinic:variable name="ProductID" encoding="perl" selectable="false" />
            With:
            Code:
            <actinic:variable name="ProductReference" encoding="perl" selectable="false" />
            Because ProductID contains extra characters on Duplicates.
            E.g. ID 12345 becomes 1!12345 on the first Duplicate.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Originally posted by graphicz View Post
              I have just found your site (I think) and it sells alcohol.

              This from the Google document I refer to above:
              Thank you for your response. My site www.absintheonline.com does sell alcohol, but AdWords now allows this category if an age verification landing page is used and our text ads are displayed.

              Comment


                #8
                This gets more confusing. I have pasted the code exactly as supplied by Google without the actinic blockif and without variables and the code is now displayed on my site's product pages, eg http://www.absintheonline.com/acatal...-FDC.html#a182 and passes the Tag Assistant check

                var google_tag_params = {
                ecomm_prodid: 'REPLACE_WITH_VALUE',
                ecomm_pagetype: 'REPLACE_WITH_VALUE',
                ecomm_totalvalue: 'REPLACE_WITH_VALUE',
                };

                This also works if I put numbers rather than variables into the ecomm values. But as soon as I put in variables I get a coding error The 'ProductID' variable has been placed within the 'Absinthe OnlinePrimary' layout but it won't work here

                If I apply the actinic blockif, there are no errors but then the code disappears!
                Last edited by Ianh99; 13-Jul-2014, 11:38 AM. Reason: fresh information

                Comment


                  #9
                  The 'ProductID' variable has been placed within the 'Absinthe OnlinePrimary' layout
                  "Product" variables are only valid within Product Layouts. Looks like you're putting your code within an Overall Layout (which could contain many products thus ProductReference, etc cannot be valid.

                  This code needs to be placed within whatever Product Layout you use for such products.
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #10
                    Originally posted by NormanRouxel View Post
                    "Product" variables are only valid within Product Layouts. Looks like you're putting your code within an Overall Layout (which could contain many products thus ProductReference, etc cannot be valid.

                    This code needs to be placed within whatever Product Layout you use for such products.
                    Thank you all for your help, progress at last. I have pasted the code into the Product Layout (Standard layout using CS in my case) with the variables added but without the blocks, it is now appearing on the site, and is identified by Tag Assistant. I am however getting a critical error showing up when I validate the products on this page:

                    http://www.absintheonline.com/acatal..._absinthe.html

                    Remarketing Tag (new) 1234567890Critical Issues
                    Conversion ID
                    123456789
                    <script> tag found.
                    <iframe> tag found.
                    <noscript> tag found.
                    Suggestion: Code should be placed directly above the closing <body> tag. more info
                    Suggestion: Both <script> and <iframe> used. more info
                    Validate Products Not validated yet
                    Requests 1
                    RequestCritical Issues
                    Data
                    ecomm_prodid: 555N
                    ecomm_pagetype: Product
                    ecomm_totalvalue: 32.95
                    URL
                    http://googleads.g.doubleclick.net/p..._absinthe.html
                    Last checked
                    1405350482568
                    Redirected URL
                    http://www.google.com/ads/user-lists...ndom=618657883
                    Status Error

                    I'm not sure what this refers to.

                    Comment


                      #11
                      I'm also having problems. The code seems to be recognised i.e. it picks the right product and price but it won't let me validate the product when I put my Merchant Account number in. See attached.
                      Attached Files

                      Comment

                      Working...
                      X