Analytics

Gungnir
2021-03-26
1 min

INFO

These features are disabled by default.

TIP

Code related to the disabled features will not be included in your site's bundle files.

Now Google Analytics (via plugin-google-analytics) and Baidu Tongji (via plugin-baidu-tongji) are supported.

Google Analytics

Paste the tracking code offered by Google Analytics here:

theme: gungnirTheme({
  themePlugins: {
    ga: "your-tracking-code"
  }
})

Baidu Tongji

Paste the tracking code offered by Baidu Tongji here:

theme: gungnirTheme({
  themePlugins: {
    ba: "your-tracking-code"
  }
})