Google Code... why is this so difficult?

Anonymous
Not applicable

Google Code... why is this so difficult?

I am having a terrible time trying to get a simple anwer on what must be an extremely common question:  How and where do I place the google conversion code on a "thank you page" that I set up in Marketo?  Does it go in the body of the page? In a text box?  In the template?  Any help much appreciated.  My code looks like this:

<!-- Google Code for Report Download Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 9xxx9;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "fffxxxfff";
var google_conversion_label = "NblrCKxxxx1QM";
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.gXXXXN&amp;script=0"/>
</div>
</noscript>
Tags (1)
2 REPLIES 2
Anonymous
Not applicable

Re: Google Code... why is this so difficult?

All that really matters is that you put the code in the body of the page.

On the thank you landing page you can insert an html element and add the code. 
Jenn_DiMaria2
Level 10

Re: Google Code... why is this so difficult?

Hi Hugh!  I think you're fine as long as you place the code anywhere between your BODY tags.  Most people do this either toward the top of the page or at the bottom near the closing BODY tag - at least in my experience!

The way I've done this in the past is to set up a separate conversion template to make sure the code is embedded properly in the HTML, but you can probably use the drag-n-drop HTML feature on the landing page to place it somewhere, as well.