Dochameleon

- 文档
- 帮助
- 博客

› 分析

Dochameleon support Google Analytics.

After setup Google Analytics for your project. Add `analyticsConfig.js` along with `siteConfig.js`

    website/
    └── analyticsConfig.js

Content similiar to this, remember to replace tracker_id:

    const analyticsConfig = {
      tracking_id: 'UA-XXXX-Y',
      js: { src: 'https://www.googletagmanager.com/gtag/js', async: true }
    }

    module.exports = analyticsConfig;

Then build and publish. Check results at Google Analytics

← 搜索 多种语言 →