# How Prisma uses Dub to improve insights for pris.ly links

Prisma recently migrated their pris.ly short links to Dub. Learn why they chose Dub.co and how it has helped them better understand their users' needs.

- Company: [Prisma](https://prisma.io/)
- About: Prisma creates Data DX tools to build modern data-driven applications with a great developer experience.
- Industry: Developer Tools, SaaS
- Company size: 11-50
- Founded: 2016
- Dub plan: Business
- Published: September 7, 2023
- Source: https://dub.co/customers/prisma

## Results

- **250+** links migrated
- **<1 day** migration time

[Prisma](https://prisma.io/) provides excellent tools for developers to build data-driven applications.

At its core, the popular open-source Prisma ORM for Node.js and TypeScript is known for its intuitive data model, migrations, type-safety, and auto-completion. It currently has \~1.5M weekly NPM downloads and is used by millions of developers around the world.

[https://github.com/prisma/prisma](https://github.com/prisma/prisma)

In fact, Dub.co itself uses the Prisma ORM under the hood to handle database queries and migrations – here is our [Prisma Schema](https://github.com/dubinc/dub/blob/main/apps/web/prisma/schema.prisma) file, fully open-source as well!

With [Prisma Accelerate](https://www.prisma.io/data-platform/accelerate) and [Prisma Pulse](https://www.prisma.io/data-platform/pulse), Prisma is also providing new tools to build modern applications with great developer experience.

## The challenge: Managing and tracking 250+ short links

Earlier this month, [Petra](https://twitter.com/petradonka) from the Prisma team reached out with one simple request – they wanted to migrate their existing `pris.ly` short links to Dub.

For context, `pris.ly` links were used in their various online communications, as well as the Prisma ORM to link to documentation and other resources. For example, the following link in the default Prisma schema would redirect to the [Prisma Schema docs page](https://www.prisma.io/docs/concepts/components/prisma-schema):

![Example of a pris.ly link used in Prisma Schema](https://assets.dub.co/customers/prisma-schema.png)

In the past, Prisma used a [custom-built solution](https://github.com/prisma/pris.ly) to handle short links. However, this solution was not ideal for a few reasons:

1. **Lack of analytics**: There was no way to track which links were clicked on the most, or where the clicks were coming from.
2. **Potential for link conflicts**: As the number of links grew, it became increasingly difficult to ensure that each link was unique.
3. **Complicated UX and slow updates**: To add a new link, a user would have to create a new [pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) on the GitHub repository, merge it, and wait \~10 seconds for the new link to be deployed.

> We wanted something that not only enables everyone at Prisma to create short
> links easily, but also provides more analytics for those links.
>
> Petra Donka, Head of Developer Connections, Prisma

## The solution: An easy-to-use link management platform with built-in analytics

Dub.co was the perfect solution for Prisma's use case – given its ease of use and powerful analytics.

In less than a day, Prisma was able to migrate all 250+ of their existing `pris.ly` links to Dub, and the value prop was clear from the start:

1. **Analytics on each link**: Dub.co provides detailed analytics on each link, including the number of clicks over time, location data, device data, and more.
2. **Easy to create new links**: Dub.co provides a simple UI to create new links, along with useful features such as [tags](https://dub.co/help/article/how-to-use-tags) to help organize links.
3. **Smooth UX and instant updates**: With Dub, Prisma can now [easily create short links](https://dub.co/help/article/how-to-create-link) that are instantly available to use – no more waiting for 10 seconds for the link to be deployed.

> Dub is a fantastic product – the value prop was clear in just 5 mins of us
> going live with it, when the first short link was created.
>
> Petra Donka, Head of Developer Connections, Prisma

## The results: Smoother UX for the entire Prisma team

Since migrating to Dub, Prisma has been able to quickly create new links and track the performance of each link. This gave them insight into which links are most used and how they can make even better use of those resources.

> Dub makes it so much easier to quickly create links when helping users on
> Twitter, Slack, or Discord – as well as track the performance of those links.
> Really awesome product!
>
> Marc Hess, Senior Developer Advocate, Prisma

Learn more about [Dub.co's Analytics feature](https://dub.co/analytics) and how you can leverage it to drive better insights for your marketing campaigns.

---

[Post on X](https://x.com/i/status/1702714036398297321)

See [more customer stories](https://dub.co/customers.md).
