AnalyticsMixpanel
6 hooks fired by AnalyticsMixpanel: 5 filters and 1 actions across 8 call sites.
6 hooks fired by AnalyticsMixpanel: 5 filters and 1 actions across 8 call sites. 4 of the 8 call sites are described by a docblock, at the call or on the constant that names the hook; the rest are listed with their signature and call sites only. Paths are relative to the plugin directory.
xpac_analytics_delivery_blocking
Filter · 2 arguments · 2 call sites
Filters whether provider delivery waits for the provider's reply.
Delivery runs on shutdown. Where the client can be released first
— PHP-FPM and LiteSpeed — waiting costs the visitor nothing and is
what makes an expired credential or a retired API version visible at
all. Where it cannot, shutdown still runs before the response is
finished, so waiting would put the delivery timeout back into the
page load. Force it on only if you know the request is already
detached from the visitor, such as a cron or WP-CLI run.
apply_filters( 'xpac_analytics_delivery_blocking', Dispatcher::canReleaseClient(), Addon::ID )$blocking(bool) — Whether to wait for the reply.$provider(string) — Provider add-on id.
Fired from:
packages/AnalyticsMixpanel/EventProcessor.php:326packages/AnalyticsMixpanel/UserProfiles.php:102
xpac_analytics_mixpanel_payload
Filter · 3 arguments · 1 call site
Filters the Mixpanel Import API payload.
apply_filters( 'xpac_analytics_mixpanel_payload', $payload, $event, $eventConfig )$payload(array<int,array<string,mixed>>) — Import batch.$event(array<string,mixed>) — Validated event.$eventConfig(array<string,mixed>) — Mixpanel event definition.
Fired from:
packages/AnalyticsMixpanel/EventProcessor.php:237
xpac_analytics_mixpanel_request_args
Filter · 4 arguments · 1 call site
Filters the outbound Mixpanel Import API request.
apply_filters( 'xpac_analytics_mixpanel_request_args', $args, $event, $payload, $url )$args(array<string,mixed>) — WordPress HTTP arguments.$event(array<string,mixed>) — Validated event.$payload(array<int,array<string,mixed>>) — Filtered payload.$url(string) — Fixed regional endpoint.
Fired from:
packages/AnalyticsMixpanel/EventProcessor.php:355
xpac_analytics_mixpanel_should_track
Filter · 4 arguments · 1 call site
Filters whether a validated event should be sent to Mixpanel.
Consent is checked before this filter, so it can further restrict delivery but cannot opt a visitor in.
apply_filters( 'xpac_analytics_mixpanel_should_track', true, $event, $eventConfig, $settings )$shouldTrack(bool) — Whether to continue.$event(array<string,mixed>) — Validated event.$eventConfig(array<string,mixed>) — Mixpanel event definition.$settings(array<string,mixed>) — Mixpanel settings.
Fired from:
packages/AnalyticsMixpanel/EventProcessor.php:189
xpac_analytics_provider_dispatched
Action · 3 arguments · 2 call sites
do_action( 'xpac_analytics_provider_dispatched', sanitize_key(Addon::ID), $event, $result )Fired from:
packages/AnalyticsMixpanel/EventProcessor.php:573packages/AnalyticsMixpanel/UserProfiles.php:132
xpac_analytics_remove_data_on_uninstall
Filter · 1 argument · 1 call site
apply_filters( 'xpac_analytics_remove_data_on_uninstall', true )Fired from:
packages/AnalyticsMixpanel/Bootstrap.php:134