Create an embed
1
Open the embed dialog
On the Traffic page, click Export, then Embed on your site. The embed shows the current project, and only the domain selected in the domain filter if you picked one.
2
Allow your domains
Under Allowed domains, type each domain that will show the chart and press Enter, for example
example.com. The chart only displays on these domains.3
Create and configure
Click Create embed, then pick the Period, Theme and what to Show. The preview updates as you change them.
4
Add it to your site
Copy the code under Embed code and paste it where the chart should appear. Or click Copy agent prompt and hand it to your coding agent, which adds the chart for you.
React and other JSX
Convert the attributes and load the script once, for example in Next.js:Options
The dialog writes the options into the iframe URL. You can also change them there:
For example,
.../embed/ai-traffic/<embed-id>?range=7d&theme=dark&parts=chart shows only the chart for the last 7 days in dark mode.
The background is transparent, so the chart sits on your page’s background. If you set theme=dark on a page that does not declare color-scheme: dark, some browsers paint a solid backdrop behind the iframe.
Allowed domains
example.comallowshttps://example.comonly. Addwww.example.comseparately if your site uses it.*.example.comallows every subdomain, but notexample.comitself.http://only works forlocalhostand127.0.0.1, for local development.- Enter domains only, without paths. An embed allows up to 10 domains.
Content-Security-Policy header, allow https://app.usenotra.com in frame-src and script-src.
Manage embeds
Open Export > Embed on your site on the Traffic page again to switch between embeds, edit their domains or create another one. An organization can have up to 50 embeds. Click Delete embed to take the chart down. Pages that use it show nothing after at most a minute.What visitors see
- The numbers are cached and refresh every 10 minutes.
- The embed runs no analytics and shows no consent banner.
- A small AI traffic by Notra link sits under the chart.
Build your own chart
To draw the numbers in your own chart instead, callGET /v1/projects/{projectId}/geo/traffic/overview from your server with an API key that has the traffic.read scope. Never put the API key in client-side code. Authentication explains keys and scopes.