文件名称:ga-4-react:谷歌分析4包装React
文件大小:219KB
文件格式:ZIP
更新时间:2024-05-26 22:18:32
HTML
GA4React-Google Analytics 4 React 适用于React的ga4脚本的简单包装: : Google Analytics 4 React 没有组件的示例 const ga4react = new GA4React ( 'YOUR GA CODE' , { /* ga custom config, optional */ } , [ /* additional code, optional */ ] , 5000 /* timeout, optional, defaults is 5000 */ , options /* { nonce: ['first-script-is-async','second-script'] } */ } ) ; ga4react . initialize ( ) . then ( ( ga4 ) => { ga4 . pa
【文件预览】:
ga-4-react-main
----yarn.lock(402KB)
----src()
--------index.tsx(287B)
--------models()
--------lib()
--------components()
--------hooks()
----.babelrc(79B)
----example()
--------withTracker()
--------GA4R-Component()
----tsconfig.json(1KB)
----LICENSE(1KB)
----test()
--------GA4RComponents.test.tsx(3KB)
--------withTracker.test.tsx(2KB)
--------ga4react.timeout.test.ts(499B)
--------useGA4React.test.tsx(2KB)
--------withTracker.timeout.test.tsx(1KB)
--------useGA4React.withoutGaCode.test.tsx(1KB)
--------GA4RComponents.timeout.test.tsx(1KB)
--------useGA4React.timeout.test.tsx(1KB)
--------ga4react.test.ts(915B)
--------__snapshots__()
--------ga4react2.test.ts(1KB)
----jest.config.js(195B)
----README.md(2KB)
----.gitignore(34B)
----CHANGELOG.md(200B)
----package.json(2KB)
----coverage()
--------clover.xml(9KB)
--------coverage-final.json(23KB)
--------lcov-report()
--------lcov.info(3KB)