Changelog

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

Subscribe to update

Login with password

Login with password

You can now login to your Dub account with an email and password. This is convenient if you use a password manager and prefer to login with password instead of an email magic link.

If you have a Dub account, you can set up a password for it by going to your Account Security settings and selecting Create account password.

Note that this only applies to existing Dub users – we will be adding email + password sign up for new users soon.

Continents support in analytics

Continents support in analytics

You can now filter your analytics by continents. This is a great way to see which continents are driving the most traffic to your links.

Here's the full list of supported continents: Africa, Asia, Europe, North America, South America, Oceania, Antarctica.

You can also filter by continents when you export your analytics data.

Notifications Center

Notifications Center

We've introduced a new Notifications Center to help you keep track of important events in your workspace.

You can also choose to subscribe or unsubscribe to various email notifications (e.g. monthly summary emails, domain configuration updates, etc.).

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.