我已经使用Angular2在Google Analytics中实现了此页面跟踪解决方案https://dev59.com/ZFoU5IYBdhLWcg3wO1UW#39622860,并且它运行良好。
我该如何使用?
我该如何使用?
ga('send', {
hitType: 'event',
eventCategory: 'Some Category',
eventAction: 'Level Completed',
eventLabel: 'Level 3'
});
在组件内部执行?
这段代码在组件内部运行,但控制台中会报“找不到ga”的错误。
ga('send')
。 - Mohammad Kermani