Options

Google AdWords Conversion Tracking code

AdinfinitumAdinfinitum Registered Users Posts: 5 Big grins
edited December 12, 2013 in SmugMug Customization
Hello,

I would be surprised if this has not been discussed elsewhere so forgive me, but my search only found this topic discussed a few years ago under legacy SM.

First, allow me to introduce myself,
My name is Tony, and I have a Smug Mug Pro account
URL: www.tonyheywardimages.com.au

It is my goal to be selling prints, canvases etc from the site, and I chose SM for the quality image handling. Although all of my (public) images are available for sale, I have created a separate page which is linked to the home/landing page entitled "shop" to make it easier for visitors and myself, which links to a smart gallery. The reasons for this information will be apparent below.

Most questions I've had about setting up my site I've found answers to either from SM support page or as a lurker on DGrin, but the answer to this question has eluded me.

I have recently set up a Google AdWords account and have been assigned one of their consultants. It seems to be off to a slow but manageable start but in order to evaluate effectiveness, I need to insert several lines of Java Script code into an appropriate page to measure add click-through against potential sales conversion. I can copy the code in a post here if it helps but I should stipulate this is NOT the same as Google Analytics code UA number, this is a script that needs to sit on a page, preferably a check-out page but I would settle for my Shop page as a compromise should this not be possible.

I thank you for taking the time to read this post and I hope I have explained my question clearly.

Comments

  • Options
    denisegoldbergdenisegoldberg Administrators Posts: 14,251 moderator
    edited December 12, 2013
    ...I need to insert several lines of Java Script code into an appropriate page to measure add click-through against potential sales conversion.
    New Smug does not allow use of JavaScript. Can the code be set up in any other way?

    --- Denise
  • Options
    thenickdudethenickdude Registered Users Posts: 1,302 Major grins
    edited December 12, 2013
    The conversion tracking code should actually have a
  • Options
    AdinfinitumAdinfinitum Registered Users Posts: 5 Big grins
    edited December 12, 2013
    Thanks for the reply Denise,

    I'll have to check, in the meantime, to ensure what I am saying is accurate, this is the google script generated by the adwords consultant (individual account number removed)

    __________________________________________________

    <!-- Google Code for Sales Conversion Page -->
    <script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = xxxxxxxxx;
    var google_conversion_language = "en";
    var google_conversion_format = "2";
    var google_conversion_color = "ffffff";
    var google_conversion_label = "AJB9CP_x4AcQ4YOj0QM";
    var google_conversion_value = 0;
    var google_remarketing_only = false;
    /* ]]> */
    </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="//www.googleadservices.com/pagead/conversion/xxxxxxxxx/?value=0&label=AJB9CP_x4AcQ4YOj0QM&guid=ON&script=0"/>
    </div>
    </noscript>

    _________________________________________________________

    So am I correct that this is Java script, and subsequently cannot be used in new SM?
  • Options
    AdinfinitumAdinfinitum Registered Users Posts: 5 Big grins
    edited December 12, 2013
    Lamah wrote: »
    The conversion tracking code should actually have a <noscript> section which is their fallback for when JavaScript is not supported. You should be able to add that to an HTML block in the customiser.

    Ah, we posted at the same time - as you can see there is a <noscript> section. So this can be used then? If so, do I add a content block, HTML type, onto my selected page then simply past this whole script into that. Last time I tried that the script appeared on the page. I'm not HTML literate.
  • Options
    thenickdudethenickdude Registered Users Posts: 1,302 Major grins
    edited December 12, 2013
    Yeah, just add the contents of that <noscript> section to an HTML block:
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/xxxxxxxxx/?value=0&amp;label=AJB9CP_x4AcQ4YOj0QM&amp;guid=ON &amp;script=0"/>
    </div>
    

    That looks like it renders okay and should work for you.
  • Options
    AdinfinitumAdinfinitum Registered Users Posts: 5 Big grins
    edited December 12, 2013
    Lamah wrote: »
    Yeah, just add the contents of that <noscript> section to an HTML block:
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/xxxxxxxxx/?value=0&amp;label=AJB9CP_x4AcQ4YOj0QM&amp;guid=ON &amp;script=0"/>
    </div>
    

    That looks like it renders okay and should work for you.

    Thank you for the quick reply, just to confirm, I ignore all the top code and ONLY paste in this part?

    <noscript>
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/xxxxxxxxx/?value=0&label=AJB9CP_x4AcQ4YOj0QM&guid=ON &script=0"/>
    </div>
    </noscript>
  • Options
    AllenAllen Registered Users Posts: 10,012 Major grins
    edited December 12, 2013
    Thank you for the quick reply, just to confirm, I ignore all the top code and ONLY paste in this part?

    [strike]<noscript>[/strike]
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/xxxxxxxxx/?value=0&label=AJB9CP_x4AcQ4YOj0QM&guid=ON &script=0"/>
    </div>
    [strike]</noscript>[/strike]
    Without the tags
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • Options
    AdinfinitumAdinfinitum Registered Users Posts: 5 Big grins
    edited December 12, 2013
    Allen wrote: »
    Without the red tags
    Perfect, thank you!
Sign In or Register to comment.