Is there a way to add Google Analytics tracking code to my form?
The easiest way to do this is to create a separate Joomla article as your thank you page and add your Analytics code there.
Then, in your form, you will want to redirect to that thank you page after submit. Take a look at URL for Thank You Page.
Alternative: directly inject your analytics code into BreezingForms
If you don't want to create a separate article, you can also paste the below into your form => advanced => more options => form pieces => before form => custom.
This will make sure that the analytics code is only executed when the form has been successfully rendered.
Please make sure you replace the 0000000 by your own conversion id as given by google.
if ( intval( $_REQUEST['ff_record_id'] ) > 0 ){ $s_c_r_i_p_t = 'script'; echo ' <!-- Google Code for Kontaktfomular Conversion Page --> <'.$s_c_r_i_p_t .' type="text/javascript"> // <![CDATA[ var google_conversion_id = 00000000; // replace this with your own conversion id, given by google var google_conversion_language = "en"; var google_conversion_format = "3"; var google_conversion_color = "ffffff"; var google_conversion_label = "38_-CNur5GEQ-4iT1wM"; var google_remarketing_only = false; // ]]> </'.$s_c_r_i_p_t .'> <'.$s_c_r_i_p_t .' type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"> </'.$s_c_r_i_p_t .'> <no'.$s_c_r_i_p_t .'> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/988071035/?label=38_-CNur5GEQ-4iT1wM&guid=ON&script=0"/> </div> </no'.$s_c_r_i_p_t .'> '; }