mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
feat(v2): implement Google analytics plugin
This commit is contained in:
parent
7375789e46
commit
cfffad8c6d
8 changed files with 138 additions and 17 deletions
18
packages/docusaurus-plugin-google-analytics/src/index.js
Normal file
18
packages/docusaurus-plugin-google-analytics/src/index.js
Normal 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')];
|
||||
},
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue