Documentation


FAQ

How can I track Google adwords conversions when a form is submitted?

Use the form callbacks submitted event to trigger the conversion code. Here is a full example:

<script src='https://www.googleadservices.com/pagead/conversion_async.js'></script>
<script>
	var inbound_callbacks = {
		submitted: function(data) {
			window.google_trackConversion({
				google_conversion_id: xxx,
				google_conversion_language: "en",
				google_conversion_format: "3",
				google_conversion_color: "ffffff",
				google_conversion_label: "xxx",
				google_remarketing_only: false
			});
		}
	}
</script>

Forms Documentation

Form Callbacks

Rendered forms provide callbacks when certain events happen. To be notified of these events in javascript you must define a global variable called inbound_callbacks containing the required callback functions.

Available Callbacks

  • submitted - when a form is successfully submitted
  • error - when a form submission fails

Usage

	var inbound_callbacks = {
		submitted: function(result) {
			// do stuff here like track GA events or adwords conversions
			console.log('Wow a form was submitted!');
		}
	}