How can I measure (track) a virtual page view?

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.

  • Wir unterstützen dich
  • Kostenloser Support per FAQ, Chat oder E-Mail. VIP Support per Video Telefonie.
  • Umgehende Support-Rückmeldung
aivie marketing automatin lokaler support adrian schimpf