Where to plug in
There are six places to plug in, depending on where your code runs. Pick the row that matches, then read that doc.
| Where your code runs | Use | Doc |
|---|---|---|
| In the visitor’s browser on a tracked website | The tracking function, window.NahnuAnalytics, data attributes, or the nahnu:track DOM event | In the browser |
| In PHP on a client’s WordPress (with the connector) | nahnu_analytics_track() and the connector’s hooks | On a client’s WordPress (the connector) |
| In PHP on your own WordPress | nahnu_analytics_send_event() and its hooks | On your own WordPress |
| Anywhere else (a CRM, a payment webhook, a script) | The REST API with a key | The REST API |
| A SaaS or app that sets up its own users and websites | The platform API and the nahnu-analytics-sdk package | Nahnu Analytics SDK docs |
| An AI agent | The MCP server | AI agents (MCP) |
Events are the raw material: a goal is an event name (or a page) you decide to count, and a funnel is an ordered list of goals and pages. So integrating a goal means sending the event and, once, declaring the goal.
Was this helpful?
Thanks for your feedback!
✓ Feedback received. Thank you!



