Skip to content
Add my site

Store analytics for Claude Code.

One command connects Claude Code to your store’s paid orders, ad spend and traffic. Ask from any folder, and when you need a new goal tracked, Claude Code adds the code to your site and checks the event arrived.

On every plan. 14 days free, no card. Plans from $9 a month.

Claude Code · datastated

Track signups on /signup as a goal.

I created the goal and added its tracking call to the signup form. Deploy and sign up once, and I’ll check that the event arrived.

Which source made the most money last month?

Meta Ads: $2,479 in paid orders from 340 visitors. Direct visits were the biggest source, 1,275 visitors, but brought $976.

Example conversation with example data

Connect in two steps

  1. In DataStated, open the site's Settings, then the API tab, and choose Create a key for AI tools. The key is shown once. A key made there works on that site only; make it from your account page to cover every site.

  2. Run this in your terminal, with your key in place of dsk_YOUR_KEY:

    claude mcp add --scope user --transport http datastated https://app.datastated.com/api/mcp --header "Authorization: Bearer dsk_YOUR_KEY"

--scope user makes DataStated available in every folder and in the Code tab of the Claude desktop app, not only where you ran the command.

Optional: add the DataStated skill, so Claude Code knows which tool answers which question:

npx skills add https://datastated.com

Three things to ask first

Type them as you would to a person. The agent picks the right DataStated tool. Anything that deletes shows a preview and waits for a yes.

“How is my site doing this week compared to last?”
Visitors, orders and revenue for both weeks, with what changed.
“Track bookings on /thank-you as a goal.”
It creates the goal, adds the code to your site if needed, and checks the first event arrived.
“Which AI assistants read the docs last week, and were they really who they said?”
Crawler visits by assistant, with which ones were verified.

Questions

Where do I get the key?

On a site’s Settings → API tab, or the API keys tab of your account page, choose Create a key for AI tools. It can read analytics and manage goals and chart notes, but not settings, people, billing or other keys.

Can Claude Code add tracking to my site?

Yes. When it creates a goal for a custom action, DataStated returns the exact code to add. Claude Code puts it in your repository, you deploy, and it checks that the event arrived.

Can Claude Code change my ads?

No. Ad data is read-only everywhere in DataStated. Your agent's requests never reach Meta, Google Ads or TikTok, and nothing in DataStated can create, change or pause a campaign, budget, bid or ad.

Does it cost extra?

No. The MCP server is part of every plan, including the 14-day free trial. Plans start at $9 a month.

Give Claude Code the real numbers.

14 days free with every feature, no card. Add your site, connect your store, then connect Claude Code.

Add my site

Using another agent? Claude · Cursor · VS Code, or see every way to connect.