feat(v2): implement Google analytics plugin

This commit is contained in:
Yangshun Tay 2019-06-10 00:16:06 -07:00
parent 7375789e46
commit cfffad8c6d
8 changed files with 138 additions and 17 deletions

View file

@ -0,0 +1,18 @@
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const path = require('path');
module.exports = function() {
return {
name: 'docusaurus-plugin-google-analytics',
getClientModules() {
return [path.resolve(__dirname, './analytics')];
},
};
};