Skip to main content

Documentation Index

Fetch the complete documentation index at: https://dub-partner-network.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Filter analytics by tags

You can filter analytics data by tags by passing the tagIds parameter to the retrieve function.
import { Dub } from "dub";

export const dub = new Dub({
  token: process.env.DUB_API_KEY,
});

const result = await dub.analytics.retrieve({
  event: "clicks",
  groupBy: "top_links",
  tagIds: ["tag_12345", "tag_67890"],
  interval: "30d",
});

Top tags by event

This feature is coming soon. If you’d like early access, please contact us.

Tag analytics

The top links by event count, filtered by tags.