Skip to Content

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.