Docs
← Back to site

Where to plug in

1 min readUpdated November 11, 2026

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 runsUseDoc
In the visitor’s browser on a tracked websiteThe tracking function, window.NahnuAnalytics, data attributes, or the nahnu:track DOM eventIn the browser
In PHP on a client’s WordPress (with the connector)nahnu_analytics_track() and the connector’s hooksOn a client’s WordPress (the connector)
In PHP on your own WordPressnahnu_analytics_send_event() and its hooksOn your own WordPress
Anywhere else (a CRM, a payment webhook, a script)The REST API with a keyThe REST API
A SaaS or app that sets up its own users and websitesThe platform API and the nahnu-analytics-sdk packageNahnu Analytics SDK docs
An AI agentThe MCP serverAI 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?