gform_hubspot_output_tracking_script

Description

Allows the tracking script to be removed.

Usage

add_filter( 'gform_hubspot_output_tracking_script', 'your_function_name', 10, 1 );

Parameters

  • $add_tracking bool
    Whether to output the tracking script. The default is true.

Example

add_filter( 'gform_hubspot_output_tracking_script', '__return_false' );

Placement

This code should be placed in the functions.php file of your active theme.

Since

This filter was added in HubSpot version 1.0.

Source Code

This filter is located in GF_HubSpot::action_wp_footer in class-gf-hubspot.php.