# Dub Attribution Reporting Tool & MCP Connector | Datapipe

> See which Dub links turn clicks into sales. Bring Dub short links and partner results into your reports and AI assistants. Then create links or change where they point from Datapipe, with access your team controls.

Page: https://trydatapipe.com/integrations/dub
Site index: https://trydatapipe.com/llms.txt

## What Datapipe reads from Dub

- Reads: 64 report fields across 4 datasets
- Setup: Paste a key or token
- Refresh: daily to every 15 minutes
- Changes: 2 change actions

### Reports

- **Dub.co tags**: Workspace link tags and colors configured in Dub.co.
- **Dub.co domains**: Custom short-link domains, verification states, primary flags, and creation dates.
- **Short links**: Dub.co tracked short links with link ID, short URL, destination URL, clicks, leads, conversions, sales, sale amount, tags, UTM tags and the rates between them. Lifetime totals per link, not filtered by report dates.
- **Clicks, leads and sales by day**: Dub.co workspace clicks, leads, sales and sale amount for each day of the report dates, with lead rate, earnings per click and average sale.
- **Partner analytics**: Dub Partners program partners with partner ID, name, status, country, lifetime clicks, leads, conversions, sales, sale amount, commissions, net revenue and the rates between them. Lifetime totals per partner, not filtered by report dates.
- **Partner commissions**: Dub Partners commissions created in the report dates, with partner, type, status, sale amount, and how much was earned, paid and is still pending.

### Metrics and fields

Short Link, Destination URL, Clicks, Leads, Number Of Sales, Sale Amount (USD), Created At, Conversions, Domain, Slug, Title, Tags.

## Changes your assistant can make in Dub

- **Create a tracked short link**: Creates one tracked short link in your Dub.co workspace.
- **Update a short link destination URL**: Updates the destination URL for one existing Dub.co short link. Click history is preserved.

Changes stay off until the owner, an admin or a project manager allows them for this data source. Allowed changes apply right away unless you set them to wait for approval. Every change is recorded with who made it and the values before and after. Assistants cannot widen their own access.

## Set up the Dub MCP connector

1. Add Dub as a data source in Datapipe.
2. Add the MCP connector address `https://trydatapipe.com/mcp` in ChatGPT or Claude under Plugins, or in Grok under Connectors.
3. Sign in to Datapipe and choose the project your assistant can use.

Short links with destination URL, tags, clicks, leads, conversions, sales and sale amount, daily clicks, leads and sales, partners with commissions and net revenue, and commissions with status. It can also make the Dub changes you allow.

Assistant setup guide: https://trydatapipe.com/docs?guide=ai-and-mcp

## Every way to use Dub data

Add Dub once as a data source in a project. Every option below uses the same connection.

### Spreadsheets and BI tools (every plan)

- Google Sheets: a sheet with your Dub report that refreshes on its own.
- Excel: a live web query (.iqy) that refreshes the report in Excel.
- Power BI: a live data source file (.pbids) that loads the report.
- Data Studio: charts that read the Google Sheet Datapipe keeps up to date, or a ready-made report template.
- Google Drive: CSV, Excel and optional JSON files in a Drive folder you pick, hourly, daily or weekly.
- CSV and JSON downloads straight from the report.

### Client reports with Report Studio (add-on, free for 30 days)

- Report Studio: build a branded report from Dub and your other data sources with drag and drop.
- Export the report as PDF or PowerPoint, with your logo on each report.
- Publish it to your white-label client portal.
- Email it on a schedule: after each refresh, weekly or monthly.
- Approve an edition to keep that period's figures fixed.
- Gemini Enterprise: read the data feeds you publish from Report Studio.

### AI assistants (every plan)

- ChatGPT, Claude and Grok: add the MCP connector at https://trydatapipe.com/mcp and ask about Dub in a sentence, next to your other data sources.
- Your assistant can make the Dub changes you allow, and those changes can wait for approval.
- With Report Studio, your assistant can draft a report for you to publish.

### Developers (paid plans, from Starter)

- Signed webhooks (HMAC) that send each refresh to your own endpoint.
- The Project API (/api/v1) with scoped project keys to query reports.

### Warehouses and storage (Pro, Agency and Agency Plus)

- BigQuery: A warehouse table for the same columns.
- ClickHouse: Push report rows straight into a ClickHouse table over HTTPS with an API key or user credentials.
- AWS S3: Write fresh report files (NDJSON or CSV) straight into your S3 bucket using IAM access keys.
- Amazon Redshift: Load report rows into Amazon Redshift over HTTPS via the Redshift Data API with IAM access keys.
- Firebolt: Push report rows straight into a Firebolt database over HTTPS using a Service Account ID and secret.
- PostgreSQL: Write fresh report rows straight into a PostgreSQL table using standard database credentials.
- MySQL: Write fresh report rows straight into a MySQL table using standard database credentials.
- Snowflake: Push report rows into Snowflake over HTTPS using a Programmatic Access Token (no OAuth required).
- Databricks SQL: Deliver report rows into Databricks SQL tables using a Personal Access Token and SQL Warehouse ID.
- Cloudflare R2: Write NDJSON or CSV exports directly to your Cloudflare R2 bucket with S3-compatible access keys.

## Works well with Dub

- [Google Analytics](https://trydatapipe.com/integrations/google-analytics.md): Do the Dub links with the most clicks send matching GA4 sessions to their destination pages?
- [Stripe](https://trydatapipe.com/integrations/stripe.md): What share of Stripe charge revenue does Dub attribute to your short links and partners?
- [Facebook Ads](https://trydatapipe.com/integrations/facebook-ads.md): Do Meta Ads link clicks match the clicks Dub counts on the short links in those ads?
- [HubSpot](https://trydatapipe.com/integrations/hubspot.md): Do Dub’s lead counts track the number of new HubSpot contacts from referral sources?

## Questions

### What does this Dub connector include?

Datapipe reads every short link in the workspace with destination, tags, clicks, leads, sales and sale amount, daily clicks, leads and sales, every partner in your Dub Partners program with results and commissions, and commissions created in the report dates.

### Can I change Dub from ChatGPT or Claude?

Yes, when the change is allowed for you in Datapipe and your Dub key can write to Links. You can create a short link or change where an existing link points. You can require approval before a change applies.

### Are clicks and sales for the report dates?

Link and partner totals are lifetime, as Dub keeps them. Clicks, leads and sales by day and partner commissions follow your report dates. Rates like Conversion rate are rebuilt from the totals you select.

### Which currency are sale amounts in?

US dollars. Dub converts every tracked sale to US dollars when it records it.

### Does Datapipe have a Dub MCP server?

Yes. Add the Datapipe MCP connector in ChatGPT as a custom MCP plugin, or add it as a custom connector in Claude or Grok. Short links with destination URL, tags, clicks, leads, conversions, sales and sale amount, daily clicks, leads and sales, partners with commissions and net revenue, and commissions with status. It can also make the Dub changes you allow.

### Why use Datapipe if my assistant can already connect to Dub?

Datapipe puts Dub in the same project as your other data sources, so one question can compare them over the same dates. You choose which Dub changes your assistant can make and which ones wait for approval, and every change is recorded. When you want the answer every week, your assistant can draft a Report Studio report. Once you publish it, Datapipe refreshes and emails it on your schedule.

### How do I connect Dub to Data Studio?

Add Dub as a data source in Datapipe, create a report and choose Data Studio (formerly Looker Studio) as the destination. It is included on every plan, there is nothing extra to install, and the report refreshes on its own.

### How much does it cost?

Free to start. Paid plans add more data sources and refresh faster.

### How fresh is the data?

Free and Starter refresh once a day. Pro refreshes every hour. Agency refreshes every 15 minutes on any 50 data sources you pick, Agency Plus on any 100, and hourly on the rest.

### Who can turn changes on or off?

The workspace owner, workspace admins and project managers. Changes start off. They choose which changes are allowed for each data source and who can make them: project operators and managers, selected teammates, and the AI tools those people connect. They can change this at any time.

### Can changes need approval first?

Yes, if you want. For each data source, approval can cover risky changes only (deleting, sending, publishing, refunds and price changes) or every change. You can also switch it on for one person, such as an intern. Those changes wait on the Changes page until the owner, an admin or a project manager approves them. Nobody but the owner approves their own change.

### How many data sources does this use?

One for each Dub account you add to a project. Adding the same account to another project counts again. Reports and destinations do not use extra data sources.

## Links

- [Dub page](https://trydatapipe.com/integrations/dub)
- [Start free](https://trydatapipe.com/signup)
- [Pricing](https://trydatapipe.com/pricing)
- [Datapipe facts](https://trydatapipe.com/facts.md)
- [All data sources](https://trydatapipe.com/integrations)
