On your own WordPress
// Any website of yours, by id or by one of its domains
nahnu_analytics_send_event( 'example.com', 'Lead won', array(
'props' => array( 'plan' => 'pro' ),
'revenue' => array( 'amount' => 490, 'currency' => 'USD' ),
'url' => 'https://example.com/thanks',
'ip' => '203.0.113.9', // optional: joins this visitor's visit
'user_agent' => 'Mozilla/5.0 …', // optional, with ip
) ); | Hook | Kind | What for |
|---|---|---|
nahnu_analytics/event | filter | Change or drop (false) an event before sending |
nahnu_analytics/event_sent | action | After sending |
nahnu_analytics/direct_reads | filter | Return false to make every dashboard read through WordPress instead of straight from Cloudflare |
nahnu_analytics_heatmap_origin | filter | Where a website’s pages are fetched from for heatmaps (a staging copy, a test server) |
nahnu_analytics_consent_essential | filter | Return false to let consent tools on your own WordPress hold the stats back |
nahnu_analytics/js_strings | filter | Translations for the dashboard and portal apps |
nahnu_analytics/booted, nahnu_analytics/site_deleted, nahnu_analytics/client_deleted, nahnu_analytics/site_domains_saved, nahnu_analytics/tracking_settings_saved, nahnu_analytics/upgraded | actions | React to changes |
Was this helpful?
Thanks for your feedback!
✓ Feedback received. Thank you!



