为 Google Analytics 4 创建 JavaScript 事件触发器
Articulate Storyline 是一款用于创建交互式学习课程的软件。 我可以在故事情节文件中执行 JavaScript 触发器,以使用 Google Analytics 4 跟踪按钮点击。
我将以下代码添加到按钮,但它不起作用。
ga('send', 'event', 'Button', 'click', 'Next Button');
该代码在旧版本的 Google Analytics(UA)中运行良好。 许多设计师都在寻找答案。我们需要开发人员的帮助。 :) 任何建议将不胜感激。
Articulate Storyline is a software for creating interactive learning courses.
I can execute JavaScript triggers in storyline files to track button clicks with Google Analytics 4.
I added the following code to the button, but it didn't work.
ga('send', 'event', 'Button', 'click', 'Next Button');
The code was working fine with the old version of Google Analytics(UA).
Many designers are looking for the answer. We need developer's help. :)
Any advice would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这里已经介绍了这一点:https://support.google.com/analytics/answer/11147304
看起来您可以
编辑:此处文档中的附加信息; https://support.google.com/analytics/answer/11403294?hl= zh
I think this is covered here: https://support.google.com/analytics/answer/11147304
It looks like you can do
Edit: additional information in the documentation here; https://support.google.com/analytics/answer/11403294?hl=en