Skip to content

Commit df9dca5

Browse files
author
Andrew Welch
committed
Add Google Analytics to docs
1 parent 094159e commit df9dca5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/docs/.vitepress/config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ module.exports = {
33
description: 'Documentation for the Transcoder plugin',
44
base: '/docs/transcoder/',
55
lang: 'en-US',
6+
head: [
7+
[
8+
'script',
9+
{},
10+
"(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');ga('create', 'UA-69117511-1', 'auto');ga('require', 'displayfeatures');ga('send', 'pageview');"
11+
],
12+
],
613
themeConfig: {
714
repo: 'nystudio107/craft-transcoder',
815
docsDir: 'docs/docs',

0 commit comments

Comments
 (0)