diff --git a/content/.vuepress/config.js b/content/.vuepress/config.js index 8d9ec46..987c955 100644 --- a/content/.vuepress/config.js +++ b/content/.vuepress/config.js @@ -10,6 +10,5 @@ module.exports = { repo: 'lbryio/lbry.tech', docsBranch: 'master', editLinkText: 'Edit this page on Github' - }, - ga: 'UA-60403362-1' + } } diff --git a/content/.vuepress/enhanceApp.js b/content/.vuepress/enhanceApp.js new file mode 100644 index 0000000..a9cb368 --- /dev/null +++ b/content/.vuepress/enhanceApp.js @@ -0,0 +1,26 @@ +import VueMultiAnalytics from 'vue-multianalytics' + +export default ({ + Vue, // the version of Vue being used in the VuePress app + options, // the options for the root Vue instance + router, // the router instance for the app + siteData // site metadata +}) => { + + Vue.use(VueMultiAnalytics, { + modules: { + ga: { + appName: "LBRY.tech", + appVersion: "1.0", + trackingId: "UA-60403362-1" + }, + facebook: { + token: "1618717031725766" + } + }, + routing: { + vueRouter: router + } + }); + +} \ No newline at end of file diff --git a/package.json b/package.json index ac0c6c5..18954c3 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "vue": "^2.5.16", "vue-images-loaded": "^1.1.2", "vue-moment": "^3.2.0", + "vue-multianalytics": "1.9.4", "vue-resource": "^1.5.0", "vuepress": "0.9.0" } diff --git a/yarn.lock b/yarn.lock index cfb0803..8322cbd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6651,6 +6651,10 @@ vue-moment@^3.2.0: dependencies: moment "^2.11.1" +vue-multianalytics@1.9.4: + version "1.9.4" + resolved "https://registry.yarnpkg.com/vue-multianalytics/-/vue-multianalytics-1.9.4.tgz#1f235947b9f9a3acc1a0ce4f38f0541d1b596522" + vue-resource@^1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/vue-resource/-/vue-resource-1.5.0.tgz#ba0c6ef7af2eeace03cf24a91f529471be974c72"