---
title: "How can I measure (track) a virtual page view?"
id: "22972"
type: "faq"
slug: "how-can-i-measure-track-a-virtual-page-view"
published_at: "2025-05-15T11:08:56+00:00"
modified_at: "2025-05-15T11:09:06+00:00"
url: "https://aivie.ch/en/faq/how-can-i-measure-track-a-virtual-page-view/"
markdown_url: "https://aivie.ch/en/faq/how-can-i-measure-track-a-virtual-page-view.md"
excerpt: "Aivie offers the possibility to measure virtual page views and other clicks on buttons with JavaScript."
---

Aivie offers the possibility to measure virtual page views and other clicks on buttons with JavaScript.

For links that do not open in a separate page, such as popups or anchors (#contact), a virtual page view can be measured manually in Aivie. For this purpose, a corresponding JavaScript snippet is executed on click (onClick).

### Example of measuring a virtual page view:

```
mt('send', 'pageview', {

   page_title: 'Virtual Pageview Title',

   page_url: 'https://virtual-page-view-url.com#kontakt',

});
```

Fields that are not set are taken from the page on which the code is executed. For example, on the data protection page, the URL would be https://aivie.ch/das-neue-datenschutzgesetz-schweiz/

Built into a link, it looks like this:

```
<a href="#kontakt" onClick="mt('send', 'pageview', { page_title: 'Virtual Pageview Title', page_url: 'https://virtual-page-view-url.com#virtual-pageview-title', });">Kontakt aufnehmen</a>
```

## Für dich da.

Wir bieten dir lokalen Support und [Services](https://aivie.ch/en/services-marketing-automation/)
.

- Wir unterstützen dich
- Kostenloser Support per [FAQ](https://aivie.ch/en/support-faq/) , Chat oder E-Mail. [VIP Support](https://aivie.ch/product/business-support-aivie-mautic/) per Video Telefonie.
- Umgehende Support-Rückmeldung

![aivie marketing automatin lokaler support adrian schimpf](https://cdn.aivie.ch/media/wp/2022/11/16122426/6.webp "Was ist der Unterschied zwischen Leadgenerierung und Lead Nurturing? 1")
