Skip to content

Commit

Permalink
feat(ga4): filter custom params
Browse files Browse the repository at this point in the history
  • Loading branch information
adekbadek committed Jul 25, 2024
1 parent 36311c6 commit eda5553
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion includes/data-events/connectors/ga4/class-ga4.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,12 @@ function( $category ) {
}
}

return $params;
/**
* Filters the custom parameters passed to GA4.
*
* @param array $params Custom parameters sent to GA4.
*/
return apply_filters( 'newspack_ga4_custom_parameters', $params );
}

/**
Expand Down

0 comments on commit eda5553

Please sign in to comment.