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.