I hate attribution tools that give people cookie-cutter reports. So, we built a way to take your Aimerce attribution data out of our layout and into the place you actually work.

So if your team already lives in Claude, ChatGPT, Codex or Muse, this one is for you! 😉

Aimerce's new Data API and MCP let you pull your Shopify store's attribution data like ROAS, ad spend, and orders straight into tools like Claude & Claude Code, ChatGPT, Codex, and Meta Muse.

You ask it questions in plain English, setup is super easy.

You get two ways in.

  1. MCP (Model Context Protocol) is an open standard that lets AI assistants connect to outside data. Connect Claude, ChatGPT, Codex or Muse this way and ask your questions right where you already work.

  2. The REST API is for developers. They call it from their own server with an API key to pull the numbers into an internal dashboard, a script or their own app.

How to use Aimerce Data API & MCP

Step 1: Connect your AI tool

Claude and Claude Code

Claude now lists Aimerce in its connector directory.

  1. In Claude on the web, desktop or mobile app, open Customize → Connectors, choose Discover and search for Aimerce.

  1. Open Aimerce and click Connect for your team.

  1. Claude opens an Aimerce page. Check the store name, then click Allow.

  1. Start a new chat in Claude and ask a question from Step 2.

Using ChatGPT, Codex, or Meta Muse instead?

Open the Data API & MCP page in your Aimerce dashboard and pick your tool's tab. Each tab has the setup steps for that tool, plus Copy buttons for the name and URL.

Check the connection

After your first question, click Check connection under the steps on the Aimerce page. It checks the tool on the tab you have open. You'll see Connected with the time of its last request, or a note that no request has arrived yet.

Step 2. Ask about your data

Click Copy next to a question on the page and paste it into your AI tool. Start with the first one, because it checks the connection.

“Use Aimerce MCP to confirm my connected store, timezone, permissions and the date attribution data starts.”

“Show revenue and orders by channel for the last 7 complete days, with a daily trend. Include ad spend and ROAS if available.”

“Which channel brought the most new-customer revenue last week?”

"Which Meta campaigns and ads drove the most attributed revenue last week? Include spend and ROAS where available."

"Where do visitors drop off between product view and purchase over the last 14 days? Did any step change recently?"

"What marketing touchpoints came before order 1234?"

"How did my Klaviyo flows perform last week? Which flow drove the most orders?"

"List my Aimerce dashboards and run the first one for the last 30 days compared with the previous period."

Want more ideas? Click Use cases at the top right of the page and pick a topic, such as Attribution, Ad Performance, Products, Klaviyo, Customers, Traffic & Funnel or Reports.

For upgraded users, your attribution data starts on the day tracking began on your plan, so questions about earlier dates come back empty. For your first 30 days, the page shows that start date, and the example questions ask only about the days since then.

For developers

For tools that can't sign in. Cursor, Windsurf, your own agent, scripts and your own app all fall in this group. For those, scroll to the bottom of the Data API & MCP page and click Use an API key.

  1. Create an API key. It takes one click. The key is read-only, covers all of your store's data and doesn't expire. Aimerce fills it into the setup below and shows it only on this page, so finish the setup before you leave.

  2. Connect. Choose the MCP client tab or the REST API tab.

  3. Ask about your data as in Step 2. This part applies to MCP clients only.

1. MCP client

Add Aimerce to your tool as a remote MCP server over HTTP with the address https://aglb.aimerce.ai/data/mcp and this header.

Authorization: Bearer YOUR_API_KEY

If your tool reads an mcpServers config file, paste the JSON the page shows you.

Running Claude Code or Codex on a server without a browser, like a remote box or CI? Signing in needs a browser on the same machine, so use a key there. The page gives you a ready-to-run command for each tool under the MCP client tab.

2. REST API

Call https://aglb.aimerce.ai/data/v1 from your server with the same header. Never call it from browser code. My tip is to cache completed results on your backend instead of querying on every page refresh.

curl -H "Authorization: Bearer $AIMERCE_API_KEY" \
  https://aglb.aimerce.ai/data/v1/connection

You'll find every REST endpoint and parameter in the Aimerce Data API & MCP — Quick Start.

What your AI can and can't see

Your AI tool gets aggregated store analytics, like revenue, orders, spend, traffic and funnel counts by channel, campaign, product or day. It never gets customer names, email addresses, phone numbers, postal addresses or raw tracking events.

Only the AI session that asked sees the answer. We don't sell your data or share it with third parties. Every OAuth token and API key covers one store, stays read-only and travels over HTTPS only. Revoke one in Manage keys and access stops immediately.

Our privacy policy and terms of service cover the rest.

How to read the numbers the right way

We made deliberate choices about how this data behaves. Skip this part and a few of them will surprise you.

  • One connection, one store. Each connection reads the store you signed in to when you clicked Allow, or the store you created the key in. To use several stores in Claude Code or Codex, create a key for each store and add one entry per store with a different name.

  • Blank is not zero. An empty ad spend or ROAS means the data isn't available, for example because you haven't connected an ad account. It doesn't mean you spent nothing. I'd rather show you a blank than a fake zero that tells you to cut a campaign.

  • Ad spend and ROAS come from Meta and Google. Other channels like TikTok and Pinterest show attributed revenue and orders.

  • Never average ROAS. Add up revenue and spend in one currency, then divide. Aimerce keeps currencies separate and converts nothing for you.

  • Fractional orders are normal. Linear and Time Decay split one order's credit across channels, so you'll see counts like 0.5.

  • Shopify won't match, and it shouldn't. Attributed revenue credits orders to channels. Net sales after refunds, tax and shipping is a different number.

  • Dates follow your store's timezone. "Last 7 days" means the last 7 full days in your store's local time. One query covers up to 31 days, so split longer periods into shorter ranges. Saved Apps dashboards cover up to 90 days.

This is how others are using it

❝

Case 1: We built our own "ads manager" on top of Meta. Every day it pulls Aimerce's first-click orders and revenue for every ad through the API and puts them next to what Meta reports for the same ad.

❝

Case 2. We use it to make three calls. Which new ads are working, which ads bring new people and deserve more budget, and which big spenders to turn off.

❝

Case 3: New Users vs Returned Users per ad tells us which ads bring fresh traffic, which is what we want in our scaling campaigns. We were using Google Analytics for that and are moving it to your numbers now that they're in the API.

Basically you can build out your own Triple Whale with it. 🐳

How to get access

We turn Data API & MCP on per store. You need to be on the Growth Plan to unlock data storage from us.

If you can't open the Data API & MCP page, or you see "This store is not enrolled in the Data API preview," email us at [email protected] and ask us to enable it for your store. Tell us your store, what you tried and the error message, plus the request ID if you see one.

✌️ Here to help you win,

Yiqi

Reply

Avatar

or to participate