Adwords Conversion Code

14 replies · opened Apr 5, 2016

Bborjapintor88Apr 5, 2016

Hi there.

I need to put a code in my website to see if Adwords is working. Google says that you have to paste the code in the "Thanks you page". In this template there is no thanks page. Can you tell me if there is any way i can do this. ?? Thanks

SSemicolon WebSTAFFApr 5, 2016

Hello,

Both the Solutions are Possible:

  • If you need to use the Thank You Page, simply find the success: function() inside the Contact Form JS Code and add the following code inside this Function:
window.location.replace("http://stackoverflow.com");

This will definitely work fine.

Bborjapintor88Apr 6, 2016

In both points you tell me to find success:function(). I dont find this. I am using sendemail-autoresponder.php.

Thanks

Bborjapintor88Apr 6, 2016

I see the function is in the html page. I wil try if it works. Thanks

Bborjapintor88Apr 6, 2016

**Hello.

I want to do this with AJAX. **

This is the function:

<script type="text/javascript">

$("#template-contactform").validate({
submitHandler: function(form) {
$('.form-process').fadeIn();
$(form).ajaxSubmit({
target: '#contact-form-result',
success: function() {
$('.form-process').fadeOut();
$('#template-contactform').find('.sm-form-control').val('');
$('#contact-form-result').attr('data-notify-msg', $('#contact-form-result').html()).html('');
SEMICOLON.widget.notifications($('#contact-form-result'));
}
});
}
});
</script>

**This is what i have to copy in the head:
**
<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion_async.js" charset="utf-8"></script>

And this is the code i have to put inside the function:

window.google_trackConversion({
google_conversion_id: 1234,
google_remarketing_only: true,
// ...
});

Where do i put the code ???? Thanks

SSemicolon WebSTAFFApr 7, 2016

Hello,

Please add your Adwords Conversion Tracking Code as mentioned below:


	$("#template-contactform").validate({
		submitHandler: function(form) {
			$('.form-process').fadeIn();
			$(form).ajaxSubmit({
				target: '#contact-form-result',
				success: function() {
					$('.form-process').fadeOut();
					$(form).find('.sm-form-control').val('');
					$('#contact-form-result').attr('data-notify-msg', $('#contact-form-result').html()).html('');
					SEMICOLON.widget.notifications($('#contact-form-result'));

					// Your Adwords Conversion Tracking Code here

				}
			});
		}
	});

This will definitely work fine. Let us know if we can help you with anything else or if you find any further issues.

Bborjapintor88Apr 7, 2016

**Should i paste this code: **
window.google_trackConversion({
google_conversion_id: 1234,
google_remarketing_only: true,
// …
});

**Or this one:
**

<!-- Google Code for rellena_formulario Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ /
var google_conversion_id = 1013545456;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "0fzGCJixkwYQ8POl4wM";
var google_conversion_value = 1.00;
var google_conversion_currency = "EUR";
var google_remarketing_only = false;
/
]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">

attachment

</div>
</noscript>

THANKS

SSemicolon WebSTAFFApr 7, 2016

Hello,

Please use the following code since this is the one that will work on AJAX:

window.google_trackConversion({
	google_conversion_id: 1234,
	google_remarketing_only: true,
	// …
});

Let us know if we can help you with anything else or if you find any further issues.

Bborjapintor88Apr 12, 2016

Hello i have set the code a week a go and let it work to see if i see any conversion and its not working. I have recived emails but the conversion script is not working..

This is the website. I have a few forms in the web that i put the script.

www.reclamatuvuelo.com

Thanks

Bborjapintor88Apr 13, 2016

Hello.

You tell me that there was another way to do this.

If you need to use the Thank You Page, simply find the success: function() inside the Contact Form JS Code and add the following code inside this Function:
window.location.replace("http://stackoverflow.com");

This is what you told me. Could you please tell me how would be the code??

This is my succes function right now:

success: function() {
$('.form-process').fadeOut();
$('#template-contactform').find('.sm-form-control').val('');
$('#contact-form-result').attr('data-notify-msg', $('#contact-form-result').html()).html('');
SEMICOLON.widget.notifications($('#contact-form-result'));

                                      window.google_trackConversion({
                                        google_conversion_id: 1013545456, 
                                        google_custom_params: {
                                              },

And is not working. I would like to try the thank you page.

Thanks

SSemicolon WebSTAFFApr 14, 2016

Hello,

We have not tested Google Adwords yet. However, if you would like Set the Contact Page, then you can simply find the following code on your Page:

$('#contact-form-result').attr('data-notify-msg', $('#contact-form-result').html()).html('');
SEMICOLON.widget.notifications($('#contact-form-result'));

and replace it with:

window.location.replace("http://www.your-website.com/thank-you.html");

Now, you can have the Google Adwords Conversion Code on your Thank You Page. This will definitely work fine.

Let us know if we can help you with anything else or if you find any further issues.

Bborjapintor88Apr 14, 2016

Hello Thanks. Its working. I did not remove the: $('#contact-form-result').attr('data-notify-msg', $('#contact-form-result').html()).html('');
SEMICOLON.widget.notifications($('#contact-form-result'));

I just added the line window.location.replace("http://www.your-website.com/thank-you.html");

Its a problem?

I have another problem with the thanks page. The title in this web [url-removed-by-user-request] is ok for desktop. But in mobile i dont see the title.

Thanks

SSemicolon WebSTAFFApr 15, 2016

Hello,

  1. It will work fine too! So you can keep both the Codes.

  2. Simply add the .swiper_wrapper Class to the #slider Element.

This will definitely work fine. Let us know if we can help you with anything else or if you find any further issues.

Bborjapintor88Apr 16, 2016

Thanks. I work fine.

Can i ask you to remove this link: reclamatuvuelo.com/gracias...o.html from my last message. Because i have the conversion working and i have referal trafic from this website. Thanks! !

SSemicolon WebSTAFFApr 18, 2016

Hello,

We have removed the Link. Do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard