Firing Tags when a Virtual Page View occured

只愿长相守 提交于 2019-12-11 16:32:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!