Settings & Integrations2 min read

Connect Vercel

How to stream traffic logs from Vercel to RankMonster’s Agent Traffic using Drains.

Overview#

RankMonster’s Agent Traffic shows how LLM bots hit your site (e.g., ChatGPT, Perplexity, Gemini, Grok)—including volume over time, top pages, and recent requests. If your site is hosted by Vercel with an Enterprise or Pro subscription, you can use Drains to send request logs straight to RankMonster over HTTPS, and no code is needed.

Adding Your Website#

  1. Open the RankMonster app.

  2. Go to Settings > Integrations.

  3. Under the Edge CDN AI Tracker section, click Connect CDN Tracker.

  4. Run the initial Diagnostic Wizard to verify your domain and firewall settings.

  5. Once verified, select Vercel to view your specific integration credentials (Drain destination URL and API key header).

[!NOTE] Each site has its own drain destination URL and API key header. Don’t reuse them across different sites or integrations.

Integrating Vercel Log Drains#

Step 1: Choose data to drain#

  1. Log in to your Vercel account.
  2. Navigate to Settings → Drains and click on Add Drain.
  3. Choose Custom HTTP endpoint.
  4. On the next step, select Logs and click Next.

Step 2: Configure the drain#

  1. Give your drain a name ("RankMonster Bot Traffic Monitoring" for example).
  2. Select the project you'd like to add monitoring for.
  3. For Sources, select Functions, Edge Functions, Static Files and Rewrites.
  4. Confirm which environments you'd like to enable Bot Traffic Monitoring for.
  5. Sampling Rate should be left at 100% so RankMonster can properly process all website activity.
  6. Click Next.

Step 3: Configure the destination#

  1. For URL, paste your RankMonster Drain destination URL.
  2. Ensure Encoding is set to JSON.
  3. Enable the Custom Headers toggle.
  4. In the header configuration input, paste in RankMonster's API key header exactly as provided.
  5. Click Create Drain.

Step 4: Verify Traffic#

Wait up to 5 minutes for your site to show as “Active & Tracking” in RankMonster.

If your connection remains pending, click the Refresh button in the RankMonster status header. RankMonster will automatically fire a mock request to your domain to verify if logs are flowing. You can also run the Diagnostic Wizard from the Edge CDN panel menu to re-verify your configuration at any time.

👉 Once configured, your Vercel Log Drain will continuously forward logs to RankMonster, giving you real-time visibility into how LLM bots access your website.