I want to implement a conversion pixel adwords script - this is a script:
<script type="text/javascript"> var google_conversion_id = 000; var google_conversion_language = "en"; var google_conversion_format = "3"; var google_conversion_color = "ffffff"; var google_conversion_label = "hahaha"; 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/975247275153/?label=IiuoCNO17lcQgZ2P0QM&guid=ON&script=0"/> </div> </noscript>
into the contact form on my website, which does not lead to a thank you page. This is my submit form code. (Testing is not 100% complete: P)
// Send button for the "contact form". $('#sendBtn').click(function(){ //get info var fullname = $("#fullname").val(); var email = $("#email").val(); var text = $("#text").val(); //send info to php $.ajax({ beforeSend: function() { if ( IsEmail(email) == false) { $('#aboutUnsuccess').show("slow"); $('#contactform').hide("slow"); } }, url: 'http://www.example.com/contact.php', type: "POST", data: ({ "fullname": fullname, "email": email, "text": text }), success: function (results){ if ( IsEmail(email) == true) { //hide table $('#contactform').hide('slow', function() { $('#contactform').hide( "slow" ); }); //show textboxes $('#aboutSuccess').show("slow"); } } }); });
I tried using .append, which I found out that it does not work after googleing.
and tried to follow this post: How to track Google Adwords onclick conversion? - that didn't work either
javascript jquery ajax google-adwords
Rick Sanchez Nov 26 '14 at 12:47 2014-11-26 12:47
source share