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&amp;guid=ON&amp;script=0"/>
    </div>
    </no'.$s_c_r_i_p_t .'>
    ';
}

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!