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

# Dub Analytics Overview

> Learn about how you can use Dub Analytics to better understand your audience.

export const ImageLink = ({src, alt, href, cta, className = ""}) => <div className="image-link-card group relative rounded-xl overflow-hidden border border-zinc-950/10 dark:border-white/10 not-prose">
    <style>{`
      @media (hover: hover) and (pointer: fine) {
        .image-link-card .image-link-card-btn:hover {
          --tw-drop-shadow: drop-shadow(0 8px 12px #222A350d) drop-shadow(0 32px 80px #2f30370f);
          filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
        }
      }
    `}</style>
    <a href={href} target="_blank" rel="noopener noreferrer" className="block">
      <img src={src} alt={alt} className={`w-full h-auto transition-all duration-300 group-hover:scale-105 ${className}`} />
      <div className="absolute inset-0 flex items-center justify-center bg-white/60 opacity-0 group-hover:opacity-100 transition-opacity duration-300" style={{
  "--tw-backdrop-blur": "blur(8px)",
  WebkitBackdropFilter: "var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)",
  backdropFilter: "var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)"
}}>
        <span className="image-link-card-btn inline-block rounded-full border border-gray-200 bg-white px-8 py-2 transition-shadow cursor-pointer font-medium text-sm text-zinc-950 dark:text-zinc-950">
          {cta}
        </span>
      </div>
    </a>
  </div>;

On any given day, Dub Analytics tracks upwards of **10 million clicks and [conversion events](/help/article/dub-conversions)**.

With the sheer volume of data that's tracked, it is important to be able to easily filter and create reports to help marketing teams make informed decisions.

In this guide, we'll walk you through how to use Dub Analytics to get the most out of your click events and engagement data.

## Live Demo

To give you some context before we dive in, here's a live demo of Dub's Analytics dashboard:

<ImageLink alt="Dub's Analytics dashboard" src="https://assets.dub.co/cms/analytics-demo-02.png" href="https://d.to/stats/try" cta="View demo in browser ↗" className="aspect-video object-cover object-top" />

<Tip>
  This public page was created using Dub's shareable link feature. You can
  create your own shareable link by following the steps in the [Share your
  analytics](/help/article/share-analytics) guide.
</Tip>

## Analytics Views

Dub's Analytics dashboard consists of several views:

1. [Time-series analytics chart](#1-time-series-analytics-chart)
2. [Aggregated data for different facets (top views)](#2-aggregated-data-for-different-facets-top-views)
3. [Real-time events stream](#3-real-time-events-stream)

### 1. Time-series analytics chart

This is the default view and shows you the number of click events over time.

<Frame>
  <img src="https://assets.dub.co/cms/timeseries-analytics-01.png" alt="Time-series line chart" />
</Frame>

### 2. Aggregated data for different facets (top views)

These are more commonly known as the "Top Views" in Dub Analytics. These views show you the top links, countries, cities, devices, and more.

<Frame>
  <img src="https://assets.dub.co/cms/aggregated-analytics-facets-01.png" alt="Aggregated data for different facets" />
</Frame>

### 3. Real-time events stream

Dub also offers a [Real-time Events Stream](/help/article/real-time-events-stream) view that shows you the events that are happening in real-time. These events are sorted by the time they occurred, so you can see the most recent events first.

<Frame>
  <img src="https://assets.dub.co/cms/events-stream-dashboard-01.png" alt="The Events Stream dashboard on Dub" />
</Frame>

The real-time events stream lives in your workspace's [**Events** tab](https://app.dub.co/events), but you can also access it via the **View Events** button in the Analytics tab:

<Frame>
  <img src="https://assets.dub.co/cms/events-view-button-01.png" alt="Quick link to open-up the events stream from the Analytics tab" />
</Frame>

<Tip>
  When you click on the **View Events** button, the same filters you have
  applied in the Analytics tab are applied to the Events tab as well.
</Tip>

## Date Range Picker

Dub Analytics comes with a powerful date range picker that allows you to select custom date ranges for your reports.

This is especially useful when you want to compare data over different time periods, or when you want to focus on a specific time frame that is not covered by the preset date ranges.

<Frame>
  <img src="https://assets.dub.co/cms/date-range-picker-01.png" alt="New Date Range Picker for custom date ranges" />
</Frame>

<Tip>
  Pro-tip: You can use keyboard shortcuts to toggle between different preset date ranges:

  * `D` – Last 24 hours
  * `W` – Last 7 days
  * `T` – Last 30 days
  * `3` – Last 3 months
  * `L` – Last 12 months
  * `M` – Month to Date
  * `Q` – Quarter to Date
  * `Y` – Year to date
  * `A` – All time
</Tip>

## Filtering data

Dub's analytics dashboard comes with a sleek and keyboard-friendly filter bar at the top of the dashboard that you can use to filter your data.

<Frame>
  <video src="https://assets.dub.co/blog/dub-new-filters.mp4" loop autoPlay muted playsInline />
</Frame>

Here are some of the filter facets you can use:

* **Domain** – Filter by domain (e.g. `dub.sh`, `git.new`, `spti.fi`)
* **Tags** – [Filter by tags](/help/article/filter-analytics-by-tags) (e.g. Social Media, Email Campaign, Blog Post)
* **Folders** – [Filter by folders](/help/article/filter-analytics-by-folders) (e.g. Partner links, Marketing links)
* **Trigger** – [Filter by event trigger](/help/article/filter-analytics-by-trigger) (e.g. link click, QR code scan)
* **Device** – Filter by device type (e.g. Mobile, Desktop, Tablet)
* **Country** – Filter by country (e.g. United States, India, Germany)
* **City** – Filter by city (e.g. San Francisco, New York, London)
* **Region** – Filter by region (e.g. California, New York, London)
* **Continent** – Filter by continent (e.g. North America, Europe, Asia)
* **Browser** – Filter by browser (e.g. Chrome, Safari, Firefox)
* **OS** – Filter by operating system (e.g. iOS, Android, Windows)
* **Referrer** – Filter by referrer (e.g. Direct, Google, Facebook)
* **UTM Parameters** – [Filter by UTM parameters](/help/article/filter-analytics-by-utms) (e.g. `utm_source`, `utm_content`)

Additionally, with [Dub Partners](https://dub.co/partners), you can also filter by the following:

* **Partner** – Filter by [individual partners](/help/article/managing-program-partners) to measure partner activity and ROI across different time ranges
* **Partner Group** – Filter by [partner group](/help/article/partner-groups) (e.g. "Influencers" vs "User Referrals" vs "Affiliates" vs "Publishers") to understand the ROI on each of your partnership channels

<Tip>
  Pro-tip: You can use the `F` keyboard shortcut to open up the filter bar.
</Tip>

## Advanced analytics filters

You can also use our built-in advanced filtering capabilities to create powerful, customized reports for your marketing campaigns:

### Multi-filtering ("IS ONE OF")

If you need to pull stats for multiple entities at once, you can now do so with our multi-filtering feature:

<Frame>
  <img src="https://assets.dub.co/cms/advanced-filters-is.png" alt="Advanced filters IS" />
</Frame>

Examples:

* Filtering by multiple [partners](/help/article/managing-program-partners)
* Filtering by multiple [partner groups](/help/article/partner-groups)
* Filtering by multiple [folders](/help/article/filter-analytics-by-folders)
* Filtering by multiple [tags](/help/article/filter-analytics-by-tags)

### Negative filtering ("IS NOT")

Additionally, you can also pull stats for all entities \*\*\*except\*\*\* a select few to make more reporting more robust.

<Frame>
  <img src="https://assets.dub.co/cms/advanced-filters-is-not.png" alt="Advanced filters IS NOT" />
</Frame>

Examples:

* Filtering for non-US traffic
* Filtering for all [partners](/help/article/managing-program-partners) except a few outliers
* Filtering for all [partner groups](/help/article/partner-groups) except for "User referrals"
* Filtering for all [tags](/help/article/filter-analytics-by-tags) except for "General links"

Best part? You can also mix and match both multi-filtering and negative-filtering as well:

<Frame>
  <img src="https://assets.dub.co/cms/advanced-analytics-filters.jpg" alt="Mix and match analytics filters" />
</Frame>

This is available for both [Dub Partners](https://dub.co/partners) & [Dub Links](https://dub.co/links), and you can filter across [all of the facets mentioned above](#filtering-data).

Check out [an example here](https://app.dub.co/share/dash_6NSA6vNm017MZwfzt8SubNSZ?interval=30d\&country=-IN%2CVN).

## Exporting your analytics data

You can also [export your analytics data](/help/article/how-to-export-analytics) or [events stream data](/help/article/real-time-events-stream#filtering-and-exporting-events) to a CSV file at any time. This can be useful if you want to analyze the data in a business intelligence (BI) tool, share it with your team, or import it into a spreadsheet.

<Frame>
  <img src="https://assets.dub.co/cms/download-csv-button-01.png" alt="Click on the download icon to export the data" />
</Frame>

## Bonus: "Ask AI" feature

You can also use the "Ask AI" feature to query your analytics with natural language.

For example, you can ask questions like:

* "mobile chrome users US only"
* "QR scans last quarter"
* "UK android users"
* "[filter for new sales only](https://dub.co/changelog/filter-sale-type) last 30 days"

And [Dub AI](https://dub.co/blog/introducing-dub-ai) will automatically select the right filters and generate a report for you.

<Frame>
  <video src="https://assets.dub.co/blog/dub-ask-ai.mp4" loop autoPlay muted playsInline />
</Frame>
