diff --git a/package-lock.json b/package-lock.json index d60a52925..5efd5a97f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "dependencies": { "@docusaurus/core": "2.0.1", + "@docusaurus/plugin-google-gtag": "^2.0.1", "@docusaurus/preset-classic": "2.0.1", "@mdx-js/react": "^1.6.22", "clsx": "^1.1.1", diff --git a/package.json b/package.json index c314ac54f..38cbb84e5 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ }, "dependencies": { "@docusaurus/core": "2.0.1", + "@docusaurus/plugin-google-gtag": "^2.0.1", "@docusaurus/preset-classic": "2.0.1", "@mdx-js/react": "^1.6.22", "clsx": "^1.1.1", diff --git a/plugins.js b/plugins.js index ec18721f8..77a8f6075 100644 --- a/plugins.js +++ b/plugins.js @@ -1,71 +1,79 @@ module.exports = [ - [ - "@docusaurus/plugin-content-docs", - { - id: "idn", - path: "products/idn", - routeBasePath: "idn", - editUrl: "https://github.com/sailpoint-oss/developer-community-site/edit/main/", - showLastUpdateAuthor: true, - showLastUpdateTime: true, - sidebarPath: require.resolve("./products/idn/sidebar.js"), - docItemComponent: "@theme/ApiItem" - }, - ], - [ - "@docusaurus/plugin-content-docs", - { - id: "iiq", - path: "products/iiq", - routeBasePath: "iiq", - editUrl: "https://github.com/sailpoint-oss/developer-community-site/edit/main/", - showLastUpdateAuthor: true, - showLastUpdateTime: true, - sidebarPath: require.resolve("./products/iiq/sidebar.js"), - docItemComponent: "@theme/ApiItem" - }, - ], - - [ - "docusaurus-plugin-openapi-docs", - { - id: "idn", - docsPluginId: "idn", - config: { - idn_v3: { - specPath: "static/idn-api/sailpoint-api.v3.yaml", - outputDir: "products/idn/api/v3", - sidebarOptions: { - groupPathsBy: "tag", - categoryLinkSource: "tag" - } + [ + "@docusaurus/plugin-content-docs", + { + id: "idn", + path: "products/idn", + routeBasePath: "idn", + editUrl: + "https://github.com/sailpoint-oss/developer-community-site/edit/main/", + showLastUpdateAuthor: true, + showLastUpdateTime: true, + sidebarPath: require.resolve("./products/idn/sidebar.js"), + docItemComponent: "@theme/ApiItem", + }, + ], + [ + "@docusaurus/plugin-content-docs", + { + id: "iiq", + path: "products/iiq", + routeBasePath: "iiq", + editUrl: + "https://github.com/sailpoint-oss/developer-community-site/edit/main/", + showLastUpdateAuthor: true, + showLastUpdateTime: true, + sidebarPath: require.resolve("./products/iiq/sidebar.js"), + docItemComponent: "@theme/ApiItem", + }, + ], + [ + "@docusaurus/plugin-google-gtag", + { + trackingID: "GTM-TSD78J", + anonymizeIP: false, + }, + ], + [ + "docusaurus-plugin-openapi-docs", + { + id: "idn", + docsPluginId: "idn", + config: { + idn_v3: { + specPath: "static/idn-api/sailpoint-api.v3.yaml", + outputDir: "products/idn/api/v3", + sidebarOptions: { + groupPathsBy: "tag", + categoryLinkSource: "tag", }, - idn_beta: { - specPath: "static/idn-api/sailpoint-api.beta.yaml", - outputDir: "products/idn/api/beta", - sidebarOptions: { - groupPathsBy: "tag", - categoryLinkSource: "tag" - } + }, + idn_beta: { + specPath: "static/idn-api/sailpoint-api.beta.yaml", + outputDir: "products/idn/api/beta", + sidebarOptions: { + groupPathsBy: "tag", + categoryLinkSource: "tag", }, - } + }, }, - ], - [ - "docusaurus-plugin-openapi-docs", - { - id: "iiq", - docsPluginId: "iiq", - config: { - iiq: { - specPath: "static/iiq-api/swagger.json", - outputDir: "products/iiq/api", - sidebarOptions: { - groupPathsBy: "tag", - categoryLinkSource: "tag" - } + }, + ], + [ + "docusaurus-plugin-openapi-docs", + { + id: "iiq", + docsPluginId: "iiq", + config: { + iiq: { + specPath: "static/iiq-api/swagger.json", + outputDir: "products/iiq/api", + sidebarOptions: { + groupPathsBy: "tag", + categoryLinkSource: "tag", }, - } - } - ] - ] \ No newline at end of file + }, + }, + }, + ], +];