Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #135 from bandprotocol/feat/add-ga
Browse files Browse the repository at this point in the history
add GA plugin
  • Loading branch information
xxibcill authored Apr 28, 2023
2 parents db2d0f8 + e114d92 commit 52a2883
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@ module.exports = {
},
],
],
head: [
[
'script',
{
async: true,
src: `https://www.googletagmanager.com/gtag/js?id=${process.env.GA_MEASUREMENT_ID}`,
},
],
[
'script',
{},
[
`window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', ${process.env.GA_MEASUREMENT_ID});`,
],
],
],
base: process.env.VUEPRESS_BASE || '/',
themeConfig: {
repo: 'BandProtocol/bandchain',
Expand Down

0 comments on commit 52a2883

Please sign in to comment.