Skip to content

conversion_bridge_platform_event

Description

The conversion_bridge_platform_event filter allows you to alter the event data for a specific platform.

Usage

do_action( 'conversion_bridge_platform_event', 'my_hook_function', 10, 2 );

Parameters

  1. $event (array)
    The original event data
  2. $platform (array)
    The platform the event is being rendered for as a key

Example

This will change the event name to be the event label (if it exists) only for Meta conversion events:

add_filter( 'conversion_bridge_platform_event', 'label_event_name_for_meta', 10, 2 );
function label_event_name_for_meta( $event, $platform_key ) {
	if ( $platform_key === 'meta' && ! empty( $event['label'] ) && $event['name'] === 'jetformbuilder_submission' ) {
		$event['type'] = $event['label'];
	}
	return $event;
}

Still need help?

If you have not yet found your answer in the documentation articles, please contact support

Contact support