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:
I'm using wasp, to check data, the dataLayer looks like is push:
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.
答案 0 :(得分:2)
当您在事件触发器中指定事件名称时,不必再次过滤(事件)事件变量。
在您的情况下,您已将两个过滤器用于不同大小写的同一变量( v irtualPageView和 V irtualPageView)。因此,至少在区分大小写的情况下,这两个条件永远不会同时满足。