On a client’s WordPress (the connector)
// Joins the current visitor's visit (a membership plugin, a booking form, a payment hook…)
nahnu_analytics_track( 'Lead won', array(
'props' => array( 'plan' => 'pro' ),
'revenue' => array( 'amount' => 490, 'currency' => 'USD' ),
) );
// Later, with no visitor around (a webhook, WP-Cron): pass their address and browser if you kept them
nahnu_analytics_track( 'Renewal', array( 'ip' => $saved_ip, 'user_agent' => $saved_ua, 'url' => home_url( '/account/' ) ) );
// Without depending on the connector being active
do_action( 'nahnu_analytics_track', 'Lead won', array( 'props' => array( 'plan' => 'pro' ) ) ); | Hook | Kind | What for |
|---|---|---|
nahnu_analytics_connector_event | filter | Change an event before it is sent; return false to drop it |
nahnu_analytics_connector_event_sent | action | After an event is sent |
nahnu_analytics_connector_inline_js | filter | Add a line to the footer snippet, for example for your own form plugin |
nahnu_analytics_connector_skip | filter | Leave a request out of counting (a staging host, a role of your own) |
nahnu_analytics_connector_purchase | filter | Change the WooCommerce Purchase event: add properties, or use net revenue |
nahnu_analytics_connector_store_currency | filter | Supply the converted amount for a multi-currency plugin that is not supported |
nahnu_analytics_connector_surecart_purchase | filter | Change or skip the Purchase for a SureCart checkout |
nahnu_analytics_connector_surecart_test | filter | Return true to count SureCart test-mode purchases |
nahnu_analytics_connector_store_purchase | filter | Change or skip a FluentCart or Easy Digital Downloads purchase |
nahnu_analytics_connector_store_test | filter | Return true to count FluentCart and EDD test orders |
nahnu_analytics_connector_consent_essential | filter | Return false to let consent tools hold the stats back until a visitor agrees |
Each store and consent filter is shown with an example in the Nahnu Analytics Connector for WordPress › WordPress integrations docs.
Was this helpful?
Thanks for your feedback!
✓ Feedback received. Thank you!



