Changelog

All the latest updates, improvements, and fixes to Dub.co

Subscribe to updates →

Export links to CSV

Export links to CSV

You can now export your workspace's links to a CSV file. This is useful if you want to analyze the data locally or share them with an external stakeholder.

Learn how to export your links to CSV.

Improvements to domain management flow

Improvements to domain management flow

Advanced link features for root domain links

Advanced link features for root domain links

New Date Range Picker for custom date ranges

New Date Range Picker for custom date ranges

We've added a new Date Range Picker to our Analytics dashboard to make it easier to select custom date ranges for your reports.

You can select from a few preset date ranges like "Last 30 days", "Last 3 months", "Year to Date", or choose a custom date range. Here's a live demo for you to try it out.

This is also supported in our API via the start and end query parameters. Here's an example:

get-analytics.ts
import { Dub } from "dub";
 
const dub = new Dub();
 
const data = await dub.analytics.retrieve({
  groupBy: "timeseries",
  start: "5 days ago", // natural language is supported
  end: new Date(Date.now()),
});
 
console.log(data); // [{ start: "2024-05-17", clicks: 69 }, { start: "2024-05-18", clicks: 42 }, ...]

Check out the docs to learn more.

noindex Support

noindex Support

If you're using Dub with a custom domain, your short links are now served with a noindex response header by default to prevent search engines from indexing them.

This helps avoid issues with Google Search console where short links might be indexed and show up in search results, which could potentially have a negative SEO impact.

Learn more about how the we handle noindex for short links on Dub.

mailto Links Support

mailto Links Support

mailto: links are now supported on Dub! Here's an example: d.to/mailto-feedback

You can now create short links that open the user's default email client with a pre-filled email.

This is useful for creating email links in your marketing campaigns or contact pages.

DX Improvements

DX Improvements

We've made a few DX (Developer Experience) improvements to our API:

1. New externalId prop for simplified link management

You can now set an externalId prop when creating a short link to associate it with a link in your database. This lets you use your own link ID to retrieve or update the link, which eliminates the need to store the Dub-generated ID in your database.

Read this blog post to see it in action.

2. Arbitrary start and end parameters for analytics endpoints

All our analytics endpoints now support passing arbitrary start and end query parameters for retrieving analytics data within a specific time range. We will be adding support for this in our dashboard soon, but you can start using it now with the API.

Check out the API and SDK docs to learn more.

3. New upsert method for efficient link creation

We added a new dub.links.upsert method for you to create or update a link in one API call. With upsert, you can shorten a URL once and all subsequent calls with that URL will return the same short link. This helps you optimize your links usage by not creating duplicate short links.

Check out the API and SDK docs to learn more.

In-app help portal

In-app help portal

We've added an in-app help portal to help you with any questions you may have about Dub.

You can access the help portal by clicking on the ? button at the bottom right corner of the screen.

The help portal contains articles on how to use Dub, answers to frequently asked questions, and a way to easily contact our support team if you can't find the answer you're looking for.

Transfer domains between workspaces

Transfer domains between workspaces

You can now easily transfer your custom domains from one Dub workspace to another, making it easier to transfer ownership of domains between different teams or organizations.

Learn more about how you can transfer domains between workspaces in just a few clicks.

Custom Expiration URLs

Custom Expiration URLs