The Google Tag Manager Tag is not fired - in a case of virtual page views using dataLayer

时间:2018-07-24 10:12:46

标签: google-analytics google-tag-manager

I have multiple urls, with the following pattern:

/products/?category=category_name

I want to create virtual page(changing url, title) for that type of url. In code below GTM code I have:

dataLayer.push({ 'event':'VirtualPageview', 'virtualPageURL':'/category/category_name', 'virtualPageTitle' : 'category_name' });

In GoogleTagManager I set:

  • two Data Layer Variable: virtualPageTitle, virtualPageURL
  • a trigger virtualPageView enter image description here

  • and the tag

enter image description here

I'm using wasp, to check data, the dataLayer looks like is push: enter image description here

and I have the values:

event: VirtualPageview
virtualPageURL: /category/rumba
virtualPageTitle: rumba
gtm.uniqueEventId: 2

but the VirtualPageView tag is not triggered, and I don't understand why. I check also with LivePreview.

1 个答案:

答案 0 :(得分:2)

当您在事件触发器中指定事件名称时,不必再次过滤(事件)事件变量。

在您的情况下,您已将两个过滤器用于不同大小写的同一变量( v irtualPageView和 V irtualPageView)。因此,至少在区分大小写的情况下,这两个条件永远不会同时满足。

相关问题