Skip to content

Additional Domains and Rollup Views

Additional domains are required if you want to send statistics to multiple dashboards or create rollup views.

Additional Domains

A Pirsch dashboard will only accept traffic for its configured domain and identification code. If the origin is different, you can add an additional domain to accept requests.

Below are the two use cases covered. It's also possible to combine the two and create rollup views while sending the statistics to multiple dashboards.


Duplicate page views and events count towards your monthly limit.

Creating a Rollup View

Let's say you have your top-level domain and a subdomain and you want to track both websites on a single dashboard. In this case, create a dashboard for and add an additional domain (wildcards with asterisks * also work). Now you can add the JS snippet to both sites using the same identification code.

<script defer src="" 

Sending Statistics to Multiple Dashboards

The second use case for additional domains is to send statistics to multiple dashboards. This allows you to create rollup views for two websites, each with its own dashboard. Each dashboard you send traffic to requires an additional domain. For example, if you make an additional request from to, you will need to add to your dashboard.

Once you have configured the additional domain, you can send statistics from to as follows.

<script defer src="" 

To send statistics to more than one additional dashboard, you can comma-separate the list, e.g. data-domain=",".

Changing the Path

Like any other Pirsch dashboard, rollup views group pages by path. This means that if you have duplicate paths on multiple domains, they will appear as the same page. To change this, you can add different prefixes to the path for each domain using the data-path-prefix attribute. Here is an example.

<script defer src="" 

If you now visit, the path send to will be /foo. For it will be /one/foo and for it will be /two/foo.

If you have fewer prefixes than rollup domains, the last one is used for subsequent requests. Having only /one in the example above would result in both rollup views receiving /one/foo.

If no data-domain attribute is present, data-path-prefix will change the path for the current domain. In the example above this would mean only would receive the page view with the path changed to /one/foo.


Referrers for additional domains will not be counted. If you have set up a domain as an additional domain for, switching from to will ignore the domain as a referrer. The other way around, it will still be tracked.

Using the Server-Side Integration

Rollup views and additional domains can also be used via server-side integration. You'll need a client to make the same requests as above from your server.