Skip to content

Commit

Permalink
Merge pull request #29 from OpenMobileAlliance/add-ga4-code
Browse files Browse the repository at this point in the history
add GA4 tracking code
  • Loading branch information
jpradocueva authored Jul 7, 2023
2 parents 1c411dd + 7e78acd commit 97a91fd
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: yarn
run: npm install

- name: Generate
run: yarn generate
run: npm run generate

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
5 changes: 4 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ export default theme({
},
router: {
base: '/githubpages-doc-guidelines/'
}
},
plugins: [
'~~/plugins/gtag',
],
})
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"dependencies": {
"@nuxt/content-theme-docs": "^0.11.0",
"nuxt": "^2.15.8"
"nuxt": "^2.15.8",
"vue-gtag": "^1.16.1"
}
}
5 changes: 5 additions & 0 deletions plugins/gtag.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Vue from 'vue';
import VueGtag from 'vue-gtag';
Vue.use(VueGtag, {
config: { id: 'G-18TD1S8XWL' }
});

0 comments on commit 97a91fd

Please sign in to comment.