Google Conversion Tracking Code Snippet | Community
Skip to main content
April 2, 2013
Question

Google Conversion Tracking Code Snippet

  • April 2, 2013
  • 5 replies
  • 4095 views
I am trying to track form completes using Google Adwords w//Marketo form landing pages. I am trying to add the script to Marketo thank you page - but it doesn't seem to take. It's the conversion tracking script run out of Google AdWords. Example is below. I pasted it into the body, but can't seem to validate the code. anyone else seen this or tried it? 

EXAMPLE: 

  <script type="text/javascript">
   /* <![CDATA[ */
   var google_conversion_id = 123456789;
   var google_conversion_language = "en";
   var google_conversion_format = "2";
   var google_conversion_color = "ffffff";
   var google_conversion_label = "AAAAAAAAAAAAAAAAAAA";
   var google_conversion_value = 0;
   /* ]]> */
   </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/123456789/
  ?label=AAAAAAAAAAAAAAAAAAA&guid=ON&script=0"/>
   </div>
   </noscript>
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

April 2, 2013
If I recall correctly, Brett, AdWords will only accept a conversion following an actual ad click.  So, script aside for now, how are you trying to test this?  I don't think just loading the landing page will do anything.
April 2, 2013
On this thank you page
info.fluidigm.com/Registertrade-inPromoDearJohnThankYou.html?aliId=1206381
Trying to get the conversion tracking within Google to work.http://support.google.com/adwords/answer/1722021
en.adwords-community.com/t5/Set-up-and-basics/Goal-Setup-In-Adwords/td-p/39912


I want to be able to go into Google and validate my conversions. i am testing it by trying to validate the code on the page. from another thread I am assuming that I don't need both scripts. Today my template has this one:

en.adwords-community.com/t5/Set-up-and-basics/Goal-Setup-In-Adwords/td-p/39912

<!-- GOOGLE ANALYTICS - async -->

<script type="text/javascript">

var _gaq = _gaq || [];

_gaq.push(['_setAccount', 'UA-3563221-1']);

_gaq.push(['_setDomainName', 'fluidigm.com']);

_gaq.push(['_setAllowLinker', true]);

_gaq.push(['_trackPageview']);

(function() {

var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

})();

</script>





January 3, 2014
I also am having the same issue - did you ever figure this issue out Brett?
Enget_Dang
Level 3
February 24, 2014
Does anyone know how to track the conversions through Google AdWords for a landing page that leads to no thank you page? We have the asset just opening up instantly after someone completes a form, but I know that Google suggests placing the code on a thank you or some follow-up page after the form is completed.
June 16, 2017

I know this is a few years later, but we are experiencing the same issue. Did you find a solution for this?

SanfordWhiteman
Level 10
June 17, 2017

Andrew, please open a new thread and I'll pursue it further with you (you can link back to this thread). Only the OP can close a thread so it's better not to revive zombie threads, since they can't be (re)marked as Answered.

April 29, 2014

Hello,
Did you ever get the tracking code to work?   
We want to track conversions (i.e. goals) in GA.  I have put the tracking code on the templates that we use for relevant landing pages, but I still cannot get conversions to track at all.
I also tried putting the tracking code directly onto each relevant landing page, but that does not seem to work.
Thanks,

RM