GIA 0.7 has 3 actions and 28 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when GIA fires an action
add_action( 'litespeed_control_set_nocache', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value GIA is about to use
add_filter( 'giawc_is_url_excluded', function( $excluded, $path ) {
// Change $excluded here.
return $excluded;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filter final URL exclusion decision. */ apply_filters( 'giawc_is_url_excluded', $excluded, $path ); -
/** * Filter purchase line item before browser send. */ apply_filters( 'giawc_order_item_data', $p_data, $item, $order ); -
/** * Filter GA4 product item payload before it is sent to the browser or * Measurement Protocol. */ apply_filters( 'giawc_product_data', $data, $product, 'product' ); -
/** * Filter browser purchase event payload. */ apply_filters( 'giawc_purchase_event_data', $data, $order ); -
/** * Filter whether the current user should be tracked. */ apply_filters( 'giawc_should_track_user', $allowed, $user_id ); -
/** * Filter whether the current user may configure GIA tracking. */ apply_filters( 'giawc_allow_configure_tracking', $allowed ); -
/** * Filter whether the current user may view GIA analytics. */ apply_filters( 'giawc_allow_view_analytics', $allowed ); -
/** * Filter the capability required to configure GIA tracking. */ apply_filters( 'giawc_analytics_configure_capability', 'manage_woocommerce' ); -
/** * Filter the capability required to view GIA analytics. */ apply_filters( 'giawc_analytics_view_capability', 'manage_woocommerce' ); -
/** * Filter GA4 cart line item payload. */ apply_filters( 'giawc_cart_item_data', $p_data, $cart_item ); -
/** * Defer individual events until consent is granted. */ apply_filters( 'giawc_event_should_defer', true, $event_name, $settings ); -
/** * Filter page-builder preview detection for additional builders. */ apply_filters( 'giawc_is_page_builder_preview', false ); -
/** * Filter resolved tax mode for ecommerce events. */ apply_filters( 'giawc_resolve_tax_mode', $exclude, $settings ); -
/** * Veto or allow a GA4 ecommerce event before it is sent. */ apply_filters( 'giawc_should_track_event', true, $event_name, $payload ); -
/** * LiteSpeed Cache: do not cache GIA admin API responses. */ do_action( 'litespeed_control_set_nocache', 'GIA GA4 admin API must not be cached.' ); -
do_action( 'giawc_after_data_retention_cleanup', $days, $cutoff ); -
apply_filters( 'giawc_blocks_supported', self::SUPPORTED_BLOCKS ); -
apply_filters( 'giawc_data_retention_days', $days ); -
apply_filters( 'giawc_default_brand', get_bloginfo( 'name' ), $product_id ); -
apply_filters( 'giawc_duplicate_tracking_sources', $sources ); -
apply_filters( 'giawc_excluded_url_patterns', $patterns, self::current_path() ); -
apply_filters( 'giawc_gtag_config', $config ); -
apply_filters( 'giawc_is_pro', $default ); -
apply_filters( 'giawc_product_price', $price, $product ); -
apply_filters( 'giawc_script_nonce', '' ); -
apply_filters( 'giawc_settings_fields', $this->form_fields ); -
apply_filters( 'giawc_should_log_product_event', true ); -
apply_filters( 'googlesitekit_is_module_connected', false, self::ANALYTICS_MODULE ); -
apply_filters( 'googlesitekit_setup_complete', true ); -
apply_filters( 'simple_wc_ga4_js_url', 'https://www.googletagmanager.com/gtag/js?id=' . esc_attr( $gtag_id ) ); -
do_action( 'woocommerce_update_options_integration_giawc_ga4_tracker' );
Generated from GIA's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: