虚拟页面视图问题-数据层-GTM [英] Virtual page view issues -datalayer- GTM

查看:152
本文介绍了虚拟页面视图问题-数据层-GTM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此preebuild电子商务系统,所有结帐都在iframe中.并在每个主要步骤(结帐1",结帐2",付款明细"和交易完成"页面&标题反映了每个步骤.但是请注意,上述所有步骤的事件名称"VirtualPageview"都是相同的.

{
event: 'VirtualPageview',
page: '/Test/test',
title 'test | test',
gtm.uniqueEventId:25
}

在gtm调试器中可视化: https://gyazo.com/6356cc13f6b63cad73e55d10abc90154

现在我想知道是否有任何方法可以将其作为分析中的综合浏览量进行跟踪? (我的主要目标是创建渠道可视化)

我已经阅读了很多信息,作为一个初学者,我感到不知所措,我很乐意为您提供一些指导我正确方向的信息.

这是我到目前为止所做的事情,不确定我是否走对了路. 我对此设置感到有限,因为事件名称相同,触发器将在所有步骤上触发,如果我能以某种方式动态地从数据层中获取页面和页面标题,那会很好.

  • GTM标记

https://gyazo.com/6f7ea35307bca9694835359485b9f74d

  • GTM触发器

https://gyazo.com/4c3b489f627dd72e17816e5b5f61f299

解决方案

您必须创建一个名为page的DataLayer变量和另一个名为title的DataLayer变量(变量的名称),并将其用作像这样的字段值:{{page}}

I'm working with this preebuild ecommerce system, all of the checkout is in an iframe. And the event below is pushed at every major step, 'checkout 1','checkout 2','payment details' and 'transaction complete' page & title reflects each steps. But NOTE the event name 'VirtualPageview' is the same for all steps mentioned above.

{
event: 'VirtualPageview',
page: '/Test/test',
title 'test | test',
gtm.uniqueEventId:25
}

Visual in gtm debugger: https://gyazo.com/6356cc13f6b63cad73e55d10abc90154

Now i'm wondering if there is any way to track this as pageviews in analytics? (My primary goal is to create a funnel visualization)

I've read through so much information and as a beginner i'm quite overwhelmed, i would appreciate a little info to point me in the right direction.

Here is what i've done this far, not sure if i'm on the right path. I feel limited with this setup, because the trigger will trigger on all steps because event name is the same, that would be fine if i could somehow grab page and page title from datalayer dynamically.

  • GTM TAG

https://gyazo.com/6f7ea35307bca9694835359485b9f74d

  • GTM Trigger

https://gyazo.com/4c3b489f627dd72e17816e5b5f61f299

解决方案

You have to create a DataLayer variable called page and another called title (names of your variables) and use them as field values like this: {{page}}

这篇关于虚拟页面视图问题-数据层-GTM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆