react-with-scripts
Add third party script tags, JS SDK and tracking code without modifying any HTML code
npm install --save react-with-scripts
Examples
Get Started
;; @ { return <AppRoot> /* ... */ </AppRoot> }
or
;; const App = { return <AppRoot> /* ... */ </AppRoot> };
Options
googleAnalytics()
googleAnalyticsTrackingId
googleOptimizeId
googleAnalyticsInit
(optional)- type - Function
- params -
ga
baiduTongji()
baiduTongjiId
baiduTongjiScript
(optional)
wechatSdk()
wechatScript
- type - String
wechatSignatureApi
- type - String
wechatDebug
- type - Boolean
wx.config({ debug: true,
wechatApiList
- type - Array
wx.config({ jsApiList: [],
growingIo()
growingIoAccountId
zhugeIo()
zhugeIoAppKey