@a1motion/analytics 中文文档教程
Analytics
使用 Google Analytics 无需大量开销
Install
yarn add @a1motion/analytics
Usage
import analytics from '@a1motion/analytics`
# Only call once
analytics('UA-XXXXXXXXX-X')
# Send events
analytics.event('Videos', 'play', 'Fall Campaign')