Search results for "{{ search.query }}"

No results found for "{{search.query}}". 
View All Results

Tracking Virtual Pageviews in Funnel

With Zarget’s funnel analysis, we can find the drop-offs for each page in the funnel.

Sometimes, however you’ll need to track additional interactions - for example visitor playing videos, subscribing for a newsletter where URLs don’t change. To track such pages that are opened up through pop-ups or overlays, you require a Virtual page.

In Zarget, virtual pageviews tracks the pages with no unique URL that your visitors are visiting.

When need a virtual pageview?

Single page applications that loads a single HTML page and dynamically updates the page as the user interacts with it.

Pop up windows holding the contact forms.

Multi-step dynamic shopping cart pages.
To track a virtual pageview in Zarget, you will need to add a simple line of JavaScript code:

window.ZargetFunnelAPI = window.ZargetFunnelAPI || [];

window.ZargetFunnelAPI.push("zg_vpage", "<Value Of The Step>");

Implementation Example

Before Adding the snippet

Before Adding the snippet

Before Adding the snippet

Zarget’s snippet for virtual pageview:

window.ZargetFunnelAPI = window.ZargetFunnelAPI || [];

window.ZargetFunnelAPI.push("zg_vpage", "addToCart");

After Adding the snippet

After Adding the snippet

After Adding the snippet

NOTE :

Select Custom from the URL match type and add the above code to the event where it has to be tracked.

Select **Custom** from the URL Match Type

Select Custom from the URL Match Type

  • When creating funnel in Zarget, just specify the URL of the page in the funnel step to track the virtual pageview.


Technical Support
Don't see what you're looking for? Just drop us a mail

Tracking Virtual Pageviews in Funnel