PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Trouble with Google Adword Conversion Code in Confirmation Pages

  1. Greetings,

    I have been reading through the forums and it seemed simple enough get Google Conversion & Tracking codes working. Based on the instructions found in this forum, here are the steps I have taken so far with no results:

    -Navigate to Forms-Form Settings-Confirmation
    -Check the option to 'Disable Auto-Formatting'
    -Paste the Google Conversion code beneath the Thank you text for example:

    "Thank you for submitting your request."

    <!-- Google Conversion Code-->
    <script type="text/javascript">
    
    var google_conversion_id = 1006482899;
    var google_conversion_language = "en";
    var google_conversion_format = "2";
    var google_conversion_color = "ffffff";
    var google_conversion_label = "T5QcCO2YpgQQ0-v23wM";
    var google_conversion_value = 1;
    
    </script>
    <script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">
    </script>
    <noscript>
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/1006482899/?value=1&label=T5QcCO2YpgQQ0-v23wM&guid=ON&script=0"/>
    </div>
    </noscript>

    Upon seeing no results in AdWords Conversions for the pages on which I placed this code. I found another topic about an issue with the Confirmation pages not showing the Google Tracking scripts which are required in order for the Conversion codes to work. Someone had written code to adjust for this to check if the tracking script existed and if not then to display it so the Conversion code would work. I copied the code, modified it to our company specifics and I went back to the Confirmation tab and added this additional code before the Conversion Code as you see below but still no results (the UA-XXXXXXX-X being our company Account):

    -
    "Thank you for submitting your request."

    <script>
    
    	if (typeof jQuery != 'undefined') {
    
    	var _gaq = _gaq || [];
    	  _gaq.push(['_setAccount', 'UA-XXXXXXX-1']);
    	  _gaq.push(['_setDomainName', 'none']); // Not needed if cross domain tracking not required
    	  _gaq.push(['_setAllowLinker', 'none']); // Not needed if cross domain tracking not required
    	  _gaq.push(['_trackPageview', '/conversion']);
    
    	  (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>
    <!-- Google Conversion Code -->
    <script type="text/javascript">
    
    var google_conversion_id = 1006482899;
    var google_conversion_language = "en";
    var google_conversion_format = "2";
    var google_conversion_color = "ffffff";
    var google_conversion_label = "T5QcCO2YpgQQ0-v23wM";
    var google_conversion_value = 1;
    
    </script>
    <script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">
    </script>
    <noscript>
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/1006482899/?value=1&label=T5QcCO2YpgQQ0-v23wM&guid=ON&script=0"/>
    </div>
    </noscript>

    Does anyone have any idea why the Conversions are not working or what I am missing here? WordPress is a bit new to our company and we are just getting started working with these widgets so any assistance would be great! Thank you...

    Natalie Poole
    949-399-6368
    natalieep@balboacapital.com

    Posted 12 years ago on Friday August 31, 2012 | Permalink
  2. Instead of using Text as your confirmation, have you tried redirecting to a different page? That way you could paste your conversion code into the text editor for that thank you page.

    Posted 12 years ago on Monday September 24, 2012 | Permalink
  3. Can you post a link to the page with your form embedded so we can see this first hand? Thank you.

    Posted 12 years ago on Wednesday September 26, 2012 | Permalink
  4. I may be having a similar issue. But in mine with auto formatting disabled and the tracking code inserted after the message, the message doesn't show up at all. I just get a blank page. Not message and no code.

    Posted 12 years ago on Wednesday November 21, 2012 | Permalink