# Configuring AI Traffic Source: https://docs.withgauge.com/help/ai-traffic-setup Connect Cloudflare or Vercel logs to Gauge to power the AI Traffic page. ## Configuring AI Traffic [AI Traffic](/navigating/ai-traffic) is powered by your server logs. Forward them to Gauge from one of two sources: * **Vercel** — requires a Vercel **Pro or Enterprise** plan. Use this if you host on Vercel without Cloudflare in front. * **Cloudflare** — works on any Cloudflare plan, including Free. Use this if your site is behind Cloudflare, even if the origin is hosted elsewhere. Both live under **Settings → Integrations**, on the **Vercel** and **Cloudflare** cards. You can connect both. ## Your Drain URL and Secret Every setup path uses two values shown on the integration page: * **Destination URL** (called **Endpoint URL** on the Vercel card) — where your host sends logs. Click **Copy**. * **Secret** — authenticates those logs. Click **Show**, then **Copy**. ## Vercel Setup Open **Settings → Integrations → Vercel** in Gauge — you'll copy the Endpoint URL and secret from it. The rest happens in the Vercel dashboard: 1. In your Vercel team, open **Settings → Drains** and click **Create Drain**. 2. Pick **Logs** as the data source. 3. Select the projects you want to track. Under source types, enable **Static Files**, **Function**, and **Edge Function** — all three together capture every incoming HTTP request. Under environments, enable **Production**. 4. For the destination, choose **Custom endpoint** and paste the **Endpoint URL** from the Gauge page. Pick either **JSON** or **NDJSON** as the format — Gauge accepts both. 5. Still on the destination step, click **Add header** and create a header named `Authorization` with the value `Bearer ` — click **Show** on the Gauge page to reveal the secret. 6. Save the drain. Vercel runs a connectivity check, and traffic starts flowing within a few minutes. In Gauge, the card shows a **Receiving events** badge and a **View AI Traffic** button once events land. Without the `Authorization` header, Gauge rejects every event with a 403 and you'll see no traffic. The value must start with `Bearer ` followed by your secret. ## Cloudflare Setup Open **Settings → Integrations → Cloudflare** and pick a tab: * **Worker (any plan)** — Gauge forwards traffic through a small Cloudflare Worker. Right for almost everyone. * **Logpush (Enterprise)** — Cloudflare streams logs directly to Gauge. Cloudflare Enterprise only. ### Option 1: Automatic Worker Setup (Recommended) Gauge creates the Worker, uploads the secret, and attaches the routes. It needs a scoped Cloudflare API token: 1. Click **Connect Cloudflare**. 2. Click **Create the token on Cloudflare**. This opens Cloudflare's **Create Custom Token** form pre-filled with the three permissions Gauge needs: `Account.Workers Scripts: Edit`, `Zone.Workers Routes: Edit`, and `Zone.Zone: Read`. 3. In Cloudflare, click **Continue to summary**, then **Create Token**, and copy the token. 4. Back in Gauge, paste it into the **Paste the token** field and click **Connect**. 5. If the token can access more than one Cloudflare account, pick one and click **Use this account**. The card now shows a **Cloudflare connected** badge and lists every zone (domain) on your account under **Your zones**. #### Enable a Zone Click **Enable** on a zone. Gauge deploys the Worker with a wildcard route covering the whole zone and forwards every request. To change what gets forwarded, expand the zone with the chevron first. Two settings: **Routes** — which parts of your site the Worker watches: * **Apex** (`yourdomain.com/*`) * **WWW subdomain** (`www.yourdomain.com/*`) * **Docs subdomain** (`docs.yourdomain.com/*`) * **Wildcard** (`*.yourdomain.com/*`) — all subdomains * **Add route** for a custom pattern, like `app.yourdomain.com/*` **Traffic to forward:** * **All requests (recommended)** — forward everything; Gauge classifies bots downstream. * **Bot requests only** — drop human traffic at the edge, forward only known AI crawlers (GPTBot, ClaudeBot, PerplexityBot, etc.). Only use this if your security policy requires it — filtered traffic can't be backfilled. Click **Enable** (or **Update** if the zone is already running). #### Verify The zone badge shows **Enabled, no events yet** right after deploying, then **Receiving events** once traffic lands — usually within a minute. If events never arrive, check that the zone's DNS records are proxied through Cloudflare (orange cloud on). The Worker only sees proxied traffic. ### Option 2: Manual Worker Setup If you'd rather not give Gauge an API token, expand **Prefer to set up manually?** at the bottom of the Worker tab: 1. In the Cloudflare dashboard, go to **Workers & Pages → Create Application**, choose **Start with Hello World!**, and click **Deploy**. 2. Open the new Worker, go to **Settings → Variables and Secrets**, and add an encrypted **Secret** named `DRAIN_SECRET`. For the value, click **Show** on the Secret row in Gauge, copy it, paste it in, and select **Save Version**. 3. Click **Edit code**, replace the starter contents with the Worker code from the Gauge page (**Copy Worker code** button), and click **Save and deploy**. 4. Go to **Settings → Triggers → Routes** and add a route matching your zone — for example, `*.yourdomain.com/*`. 5. Traffic starts forwarding within a minute. Gauge shows **Manual setup detected** with per-zone event counts once payloads arrive. ### Option 3: Logpush (Cloudflare Enterprise) 1. In the Cloudflare dashboard, open your zone and add a **Logpush job** under **Analytics & Logs → Logs**. 2. Select dataset **HTTP requests** and destination **HTTP**. 3. Paste the **Destination URL** from the Gauge page. 4. Under **Advanced options**, add a header named `Authorization` with the value `Bearer `. 5. On the **Configure fields** step, select `ClientRequestUserAgent`. Also recommended: `EdgeStartTimestamp`, `ClientRequestPath`, `ClientRequestHost`, `EdgeResponseStatus`, `EdgeResponseBytes`, and `ClientCountry`. 6. Save the job. Cloudflare sends a test batch, and the badge in Gauge flips to **Receiving events** within a few minutes. If `ClientRequestUserAgent` isn't selected, the logs arrive without user agents and Gauge can't detect AI bots. ## Turning It Off * **Vercel:** open **Settings → Drains** in Vercel, click into the drain, and select **Delete drain**. * **Cloudflare (automatic):** click **Disable** on a zone, or **Disconnect** to drop the API token entirely. * **Cloudflare (manual or Logpush):** delete the Worker route or Logpush job in the Cloudflare dashboard. Historical data already in Gauge stays put. ## Troubleshooting * **No events after Vercel setup** — check the `Authorization` header exists and starts with `Bearer `, and that **Production** is enabled under environments. * **No events after Cloudflare Worker setup** — check the zone's DNS records are orange-cloud proxied and the route pattern matches your traffic (including the trailing `/*`). * **Traffic stopped after regenerating the secret** — update the `DRAIN_SECRET` in your Worker, or the `Authorization` header in your Logpush job or Vercel drain, with the new value. * **Bots missing from Logpush data** — make sure `ClientRequestUserAgent` is in the job's field list. Still stuck? Email [support@withgauge.com](mailto:support@withgauge.com). # Billing & Plans Source: https://docs.withgauge.com/help/billing Manage your Gauge subscription, understand the free trial, and see how usage limits and plan-gated features work. ## Billing & Plans Your Gauge subscription is managed from the **Billing** tab, and payments run through Stripe. This page explains where billing lives, how to manage or upgrade your plan, what the free trial covers, and how usage limits and plan-gated features affect what you can do in the app. ## Managing Your Subscription Billing lives under **Settings → Billing**. The tab opens with a **Current Plan** card showing your plan, a status badge (for example, **Active** or **Trialing**), and your next renewal date. From here you can: * **Billing Portal** — Opens the Stripe billing portal, where you manage payment methods, view invoices, and update or cancel your subscription. When you finish, you return to Gauge. * **Activate Subscription** — Appears when your organization needs to start a paid plan. It opens a pricing table where you choose a plan and check out through Stripe. * **Subscribe** — Agency organizations use this to start their subscription through a dedicated Stripe checkout. If your organization has an active subscription but no billing record yet, you'll instead see a **Manage Billing** link that takes you to the Stripe portal. If a payment fails, the Billing tab shows a **Payment Past Due** notice. Update your payment method in the Billing Portal to avoid an interruption in service. ## Free Trial When your organization is on a trial, a **Free Trial** banner appears at the top of the Billing tab. It shows how many days remain, a progress bar, and a reminder to **add a payment method to continue after your trial ends**. Your trial's end date is also listed on the Current Plan card as **Trial ends**. To keep access after the trial, open the **Billing Portal** (or use **Activate Subscription**) and add a payment method before the end date. Whether the free trial is offered on checkout is controlled per organization. If you don't see a trial option and expected one, contact your Gauge representative or [support](mailto:support@withgauge.com). ## Usage Limits Your plan determines how much of Gauge you can use. Limits apply at both the organization level and the individual topic (category) level, and cover: * **Topics** — how many you can track. * **Prompts** — how many you can add, either overall or per topic. * **Content artifacts** — how many pieces of content you can create, counted per topic per month. * **Chat messages** — how many messages you can send in an [Ask Gauge](/navigating/ask-gauge) conversation. Some limits are capped and some are unlimited, depending on your plan. When you reach a cap, Gauge stops you from adding more of that resource and points you toward upgrading. Monthly limits reset at the start of each billing period. ## Feature Access Higher-value areas of Gauge are gated by plan. If your plan doesn't include a feature, Gauge shows an upgrade screen ("Unlock the full power of Gauge") in place of that area, with a button to activate a subscription. On the free plan, gated areas include the dashboard, [Action Center](/navigating/action-center), content, audits, research, prompts, topics, citations, and ads. Upgrading unlocks these areas and raises your usage limits. Not sure which plan fits your needs, or want to change plans? Open the **Billing Portal** from **Settings → Billing**, or reach out to [support@withgauge.com](mailto:support@withgauge.com). # Branded Prompts Source: https://docs.withgauge.com/help/branded-prompts Track how AI talks about your brand specifically — and use those insights to influence your AI SEO content strategy.