问题
We've created a multistep form and added virtual page views for the steps and confirmation page. Is there a way to use these virtual page views in Tag Manager to fire some tags?
In Google Tag Assistant I do see the pageviews being tracked in Analytics, but the tags aren't fired when I used these pageviews to be the trigger.
The virtual page views are hardcoded, not done through Tag Manager.
回答1:
Virtual page views is a virtual concept :) Depending on how it is implemented:
- If URL doesn't change: you need to push events to the dataLayer. Here is an example.
- If URL changes: you can use the built-in History Change trigger. Here is an example.
来源:https://stackoverflow.com/questions/50372843/firing-tags-when-a-virtual-page-view-occured