> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tryordinal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Shortlinks

> Shorten links inside the post editor and track clicks by destination, country, referrer, device, and browser.

Shortlinks let you track clicks on the links you share in your posts. Instead of posting a long URL, you can shorten it with one click - and Ordinal will automatically track how many people clicked, where they came from, and what devices they used.

<img src="https://mintcdn.com/ordinal/KESJyjE7WOg0l7Ll/images/shortlink-analytics.jpg?fit=max&auto=format&n=KESJyjE7WOg0l7Ll&q=85&s=86d9aa9dcefef10712dd960dfca61793" alt="Shortlink Analytics" width="1500" height="900" data-path="images/shortlink-analytics.jpg" />

## Creating shortlinks

Shortlinks are created right inside the post editor - no need to leave your draft or visit a separate page. They work out of the box with Ordinal's default domain (`ordnl.link`).

<img src="https://mintcdn.com/ordinal/9SNngH9d5toHVBfb/images/creating-shortlink.jpg?fit=max&auto=format&n=9SNngH9d5toHVBfb&q=85&s=8c1467392ab94934afb84a8e13cb5e7a" alt="Creating Shortlink" width="1500" height="900" data-path="images/creating-shortlink.jpg" />

**To shorten a link:**

1. Add a link to your post (paste a URL or use `Cmd/Ctrl + K` to insert one)
2. Click on the link in the editor
3. In the popover that appears, toggle **Shorten Link?** on
4. The URL is replaced with a tracked shortlink automatically

The shortened link will look something like `ordnl.link/abc123`. When your post publishes, every click on that link is tracked. Shortlinks will also retain the same Open Graph image and title as the original URL.

<Tip>
  You can always toggle shortening off to revert back to the original URL.
</Tip>

### Custom domains

By default, shortlinks use `ordnl.link`. If you'd prefer a branded domain like `go.yourcompany.com`, you can connect your Dub account.

<Card title="Dub Integration" icon="globe" href="/integrations/dub">
  Set up a custom domain for your shortlinks.
</Card>

## Click analytics

Once your post publishes and people start clicking, you can view detailed analytics in the [**Analytics**](https://app.tryordinal.com/analytics) section of Ordinal. Click data appears under the **Clicks Overview** tab.

<img src="https://mintcdn.com/ordinal/9SNngH9d5toHVBfb/images/link-analytics-view.jpg?fit=max&auto=format&n=9SNngH9d5toHVBfb&q=85&s=7d66e0c732e5b65b1b4bb630c90510b2" alt="Link Analytics View" width="1312" height="959" data-path="images/link-analytics-view.jpg" />

### Available metrics

| Metric                        | What it shows                                                                   |
| ----------------------------- | ------------------------------------------------------------------------------- |
| **Total clicks**              | Overall click count across all your shortlinks, displayed as a timeseries chart |
| **Clicks by link**            | Which shortlinks received the most clicks                                       |
| **Clicks by destination URL** | Which destination URLs received the most traffic                                |
| **Countries**                 | Geographic breakdown of where clicks originated                                 |
| **Regions**                   | More granular location data within countries                                    |
| **Referrers**                 | Where the traffic came from (social platform, direct, other websites)           |
| **Devices**                   | Mobile vs. desktop breakdown                                                    |
| **Browsers**                  | Chrome, Safari, Firefox, etc.                                                   |
| **Operating systems**         | Windows, macOS, iOS, Android, etc.                                              |

Use the date range filter to zoom in on specific time periods - helpful for measuring campaign performance or comparing week-over-week trends.

<Tip>
  Click analytics only track links that were shortened using Ordinal's link shortener. Regular links in your posts aren't tracked.
</Tip>

## Learn more

<CardGroup cols={2}>
  <Card title="Dub Integration" icon="globe" href="/integrations/dub">
    Use a custom domain for your shortlinks.
  </Card>

  <Card title="Analytics Overview" icon="chart-line" href="/analytics/overview">
    Explore all your performance metrics.
  </Card>
</CardGroup>
