Google Adwords on the Form

3 replies · opened Dec 12, 2017

DdeleanDec 12, 2017

Hi. Sorry to bother you again. Once you've solved the issue of sending to Google Analytics, I'd like to know how to send the signal to Google Adwords for tracking user / message conversions. They give me the following code, which should be placed between the <body> and </ body> tags, however, I do not want a thank you page after submitting the form, I just want the message "sent successfully" and the signal was sent. Thank you for your help.

<!-- Google Code for Aluguel - Formulário Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ /
var google_conversion_id = 928545699;
var google_conversion_label = "6pkhCJWt3nYQo_fhugM";
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>

SSemicolon WebSTAFFDec 13, 2017

Hello,

No worries at all! We are always here to help! :)

This is Definitely Possible too!

Add the following code at the bottom of the Page:

and then add the following JS Code inside the contactForm: function() Function Block in the js/functions.js File as explained in the previous post:

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

This will definitely work fine. Hope this Helps!

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

DdeleanDec 17, 2017

Thank you so much for your answer.
Just to understand better, this code:
I put in the html page where the form is or in PHP form?
And regarding the JS tracking code I should also replace the following code: if (data.alert! = 'error') {$ (form) .clearForm (); } as of analytics, or just insert the new code below that?
Sorry, I'm new to it all and sometimes the explanation has to be more detailed. I'm really sorry.
Thank you for your help

SSemicolon WebSTAFFDec 18, 2017

Hello,

No worries at all! We are always here to help! :)

  1. Add the following code at the bottom of the HTML Page (where your Contact Form is):
  1. Add the following JS Code inside the contactForm: function() Function Block in the js/functions.js File just below the if( data.alert != 'error' ) { $(form).clearForm(); } Line of Code:
window.google_trackConversion({
	google_conversion_id: 1234,
	google_remarketing_only: true,
	// ...
});

You do not have to delete or replace any code. This will definitely work fine. Hope this Helps!

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

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