AI traffic: Vercel
What it does
Section titled “What it does”This connection works today. If your site is hosted on Vercel, a log drain sends a record of every request to an address you choose. Zeo Radar picks only the AI bot lines out of that stream and collects them on the AI Traffic screen: which bot fetched which page, how many times, and what status code your server returned.
It does not try to process every line you send. Non-bot lines are counted and discarded, so it is safe to connect the stream without filtering it.
Requirements
Section titled “Requirements”- A Pro or Enterprise team on the Vercel side. Drains are not available on the Hobby plan.
- An account that can change team settings.
- The Radar Pro or Custom plan in Zeo Radar.
- An ingest token, generated with the “Connect a continuous stream” button on the AI Traffic screen in the app. The token represents your brand and must be kept secret.
- Open the brand in the app, choose Connect a continuous stream on the AI Traffic screen, and copy the address it gives you. It looks like this:
https://app.zeoradar.com/api/bot-logs?token=YOUR_INGEST_TOKEN- In Vercel, go to team settings > Drains > Create Drain.
- Set Type to Logs.
- Set Destination to Custom Endpoint.
- Set Format to NDJSON or JSON. Both are read; NDJSON takes less space on large sites.
- Paste the address from step 1 into the Endpoint URL field.
- Choose which projects and which environments (Production, Preview) to send. Production alone is usually enough, since bots do not visit preview environments.
- Choose Create. While creating the drain, Vercel immediately tests the endpoint and expects a 200. If creation succeeds, the connection is working.
Verify it works
Section titled “Verify it works”Once the drain is saved, run two checks.
First, the drain itself: if Vercel did not error during creation, the address and the token are correct. Second, real data. Make a request to your site with a bot identity:
curl -A "OAI-SearchBot/1.0" https://yourdomain.com/ -o /dev/null -sThen refresh the AI Traffic screen in the app. The Bot requests counter should go up
and an OAI-SearchBot row should appear in the table. Vercel ships the stream in batches, so
a delay of a few minutes is normal.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause | Fix |
|---|---|---|
| The Drains menu is not visible | The Hobby plan | Upgrade the team to Pro, or use custom log shipping |
| An error while creating the drain | The address is mistyped, or the token is invalid | Copy the address from the app again and make sure the whole token was pasted |
| The drain is set up but there is no data | No AI bot has visited the site yet | Run the curl test above; if the counter moves, the stream is working |
| Response 401 “Unknown ingest token” | A new token was generated and the old one is invalid | Update the token in the drain address |
| Response 413 | More than 5,000 lines in a single batch | Reduce the Vercel batch size, or send Production only |
| Data arrives but page paths are empty | The records carry no path field | Make sure the drain type is Logs |
| The unverified column is filling up | The bot name is used from an address the vendor never published | A sign of a fake bot, block it at the network layer |
feedback.question
feedback.thanks