在页面上多次触发组
我需要有关Google标签管理器和Google Analytics(分析)的帮助。
如果用户在文章的画廊中查看图像,我想向Google Analytics(Google Analytics)发送页面浏览量。当用户查看图像时,他正在停留在同一URL上。
我创建了一个由两个事件组成的触发组
•用户同意使用Google Analytics(分析) •当被查看的图像被查看时,
该事件已被解雇。不幸的是,触发组只在页面上被触发一次。当用户打开画廊并查看图像并滚动到下一个图像时,他仍在同一URL上。在这种情况下,触发组只被射击一次。
如何实现触发器组在同一页面上多次触发,而无需删除第二个触发器(同意)?
我发现我可以创建一个第二个触发组,并添加两个图像视图,并作为触发器同意。但是,这种解决方案意味着我必须创建100个新标签,这有点疯狂。有解决方法吗?
提前致谢
I need some help with Google Tag Manager and Google Analytics.
I want to send a pageview to Google Analytics if a user is viewing an image in a gallery on an article. The user is staying on the same URL, when he is viewing an image.
I created a trigger group which consists of two events
• Consent given by the user to use Google Analytics
• Event which is fired when an image in a gallery is being viewed
This works so far so good. Unfortunately, the trigger group is only being fired once on a page. When a user open the gallery and views the image and scrolls to next image, he is staying on the same URL. In that case, the trigger group is only being fired once.
How can I achieve that the trigger group is being fired multiple times on the same page without removing the second trigger (consent)?
I found out that I can create a second trigger group and add two image views and the consent as a trigger. But this solution means that I have to create 100 new tags, which is kind of crazy. Is there any workaround?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
用户以每个pageview可以获取的方式给予同意(例如,您要以某种持久状态设置它:数据层,cookie等),最终您只是在事件发生时只是在寻找触发。
由于您描述了一次仅发生一次的方案,因此我敦促您查看标签上的其他触发器,并删除您的描述表明您已经存在的特定页面触发器。仅用您的活动和同意触发器替换它,每次观察事件时都应该工作。
Once consent has been given by the user in a way that each pageview can pick up (e.g. you're setting it in some persisted state: data layer, cookie, etc.), you're ultimately just looking at triggering when the event happens.
Since you describe a scenario where it happens only once, I'd urge you to take a look at the other triggers on your tag and remove the page-specific trigger your description suggests you have in place. Replace it with only your event and consent triggers and it should work every time an event is observed.