Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org).

## [7.31.0] - 2026-11-22
### Added
* Document new Matomo capabilities around custom dimensions.

### Changed
* Update dependencies

### Deprecated
* *Nothing*

### Removed
* *Nothing*

### Fixed
* *Nothing*


## [7.30.0] - 2026-11-07
### Added
* Document new geolocation strategies
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion src/pages/documentation/advanced/send-visits-to-matomo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,26 @@ import { Callout } from '../../../components/Callout.js';

## Send visits to Matomo

Starting with v3.7.0, Shlink can send every visit to a [Matomo](https://matomo.org/) instance of your choice.
Shlink can send every visit to a [Matomo](https://matomo.org/) instance of your choice.

Matomo is an open source Google Analytics alternative, which can be self-hosted or used in the cloud, with a philosophy very much in line with Shlink's.

Sending visits to Matomo will enable an alternative UI to check short URL visits, and take advantage of all its analytics capabilities.

### Custom dimensions

Starting with v5.2.0, Shlink can send some custom dimensions to Matomo, to track some useful segmentation topics that are not supported by Matomo out of the box.

Currently supported custom dimensions are:

* Visit type: `valid_short_url`, `invalid_short_url`, `base_url` or `regular_404`.
* Visit domain: The domain of the visited URL. Usually one of your configured domains, except for orphan visits, where someone could have used a random domain and still reach your instance depending on your DNS configuration.
* Is orphan: `true` or `false`.

Custom dimensions need to be first [configured in Matomo](https://matomo.org/blog/2026/03/custom-dimensions/#:~:text=Step%201%3A%20Plan%20and%20create%20the%20dimension), and then provided to Shlink via configuration or environment variables:

![Matomo custom dimensions](/images/integrations/matomo-custom-dimensions.png)

### Matomo integration FAQ

This is some general information and considerations when integrating Shlink with a Matomo instance:
Expand Down
5 changes: 4 additions & 1 deletion src/pages/documentation/environment-variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,15 @@ There's a potential risk of breakage when updating Shlink, so make sure you move
- `MATOMO_BASE_URL`: The external Matomo server URL. This will be ignored if `MATOMO_ENABLED` is false.
- `MATOMO_SITE_ID`: The site ID to be used for Shlink visits. This will be ignored if `MATOMO_ENABLED` is false.
- `MATOMO_API_TOKEN`: The API token so that Shlink can call Matomo's API. This will be ignored if `MATOMO_ENABLED` is false.
- `MATOMO_VISIT_TYPE_DIMENSION_ID` _(v5.2.0)_ : The dimension ID configured in Matomo to track the visit type. This custom dimension will not be sent if not set.
- `MATOMO_IS_ORPHAN_DIMENSION_ID` _(v5.2.0)_ : The dimension ID configured in Matomo to track if the visit is orphan or not. This custom dimension will not be sent if not set.
- `MATOMO_VISIT_DOMAIN_DIMENSION_ID` _(v5.2.0)_ : The dimension ID configured in Matomo to track the visit domain. This custom dimension will not be sent if not set.

#### Specific for the docker image

These are the env vars that only the docker image take into consideration:

- `PORT`: Can be used to set the port in which Shlink listens. Defaults to 8080 (Some cloud providers, like Google cloud or Heroku, expect to be able to customize exposed port by providing this env var).
- `PORT`: Can be used to set the port in which Shlink listens. Defaults to 8080 (Some cloud providers, like Google Cloud or Heroku, expect to be able to customize exposed port by providing this env var).
- `WEB_WORKER_NUM`: The amount of concurrent http requests this Shlink instance will be able to serve. Defaults to the amount of available CPUs.
- `TASK_WORKER_NUM`: The amount of concurrent background tasks this Shlink instance will be able to execute. Defaults to the amount of available CPUs.
- `SKIP_INITIAL_GEOLITE_DOWNLOAD`: If provided with value `true`, it will skip the initial GeoLite2 db file download, speeding-up the container start-up. As a side effect, first visits on this container will remain un-located until the file finishes downloading in background.
Expand Down
16 changes: 9 additions & 7 deletions src/pages/features.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
faBan,
faCropAlt,
faDatabase,
faEarthEurope,
faFileImport,
faLaptopCode,
faLaugh,
Expand Down Expand Up @@ -42,6 +43,10 @@ import Layout from '../layouts/Layout.astro';
Personalize your campaigns' short URLs by using custom
slugs or <Indivisible>multi-segment</Indivisible> custom slugs.
</Feature>
<Feature title="Geolocation" icon={faEarthEurope} link="/documentation/geolocating-visitors">
Geolocate visitors using different strategies,
like <ExternalLink href="https://www.maxmind.com/en/geolite-free-ip-geolocation-data">GeoLite2</ExternalLink>.
</Feature>
<Feature title="Multi-domain" icon={faLink} link="/documentation/advanced/multiple-domains">
Serve multiple short domains under the same Shlink instance. You can even use the same custom slugs.
</Feature>
Expand All @@ -52,25 +57,22 @@ import Layout from '../layouts/Layout.astro';
>
Dynamically redirect visitors to different places based on geolocation, device type, language, etc.
</Feature>
<Feature title="Real-time updates" icon={faPaperPlane} link="/documentation/advanced/real-time-updates">
Subscribe to events on Shlink, by integrating your instance
with <ExternalLink href="https://mercure.rocks">mercure</ExternalLink> or <ExternalLink href="https://www.rabbitmq.com/">RabbitMQ</ExternalLink>.
</Feature>
<Feature title="Tags" icon={faTags}>
Tag your short URLs and classify them for later analytics.
</Feature>
<Feature title="Emojis" icon={faLaugh}>
Emojis are just unicode. Use them in your short URLs, long URLs, titles, tags or anywhere you want.
</Feature>
<Feature title="Real-time updates" icon={faPaperPlane} link="/documentation/advanced/real-time-updates">
Subscribe to events on Shlink, by integrating your instance
with <ExternalLink href="https://mercure.rocks">mercure</ExternalLink> or <ExternalLink href="https://www.rabbitmq.com/">RabbitMQ</ExternalLink>.
</Feature>
<Feature title="Limited access" icon={faLock}>
Limit access to short URLs, by date range and/or maximum number of visits.
</Feature>
<Feature title="API-first" icon={faLaptopCode} link="/documentation/api-docs/">
Shlink exposes a fully featured REST API that simplifies integrating it anywhere.
</Feature>
<Feature title="API key roles" icon={faBan} link="/documentation/api-docs/api-key-roles/">
Limit the resources with which an API key can interact, by domain or only short URLs created with it.
</Feature>
<Feature
title="Docker image"
icon={faDocker}
Expand Down