【发布时间】:2017-10-13 13:08:45
【问题描述】:
我已经使用 Angular2 https://stackoverflow.com/a/39622860/4155124 在 Google Analytics 中实现了这个页面跟踪解决方案,并且效果很好。
我该如何使用
ga('send', {
hitType: 'event',
eventCategory: 'Some Category',
eventAction: 'Level Completed',
eventLabel: 'Level 3'
});
在组件内?
此代码在组件内有效,但控制台中出现“找不到 ga”错误。
【问题讨论】:
标签: angular typescript google-analytics