diff --git a/docs/using-source/analytics.md b/docs/using-source/analytics.md new file mode 100644 index 0000000..19aaa54 --- /dev/null +++ b/docs/using-source/analytics.md @@ -0,0 +1,23 @@ +--- +title: Analytics +id: analytics +slug: /analytics +sidebar_position: 6 +--- + +Source Cooperative provides two views of analytics for data products: a public sidebar visible to all visitors, and a detailed tab available to product owners and editors. + +## Analytics Sidebar + +Every public data product displays an analytics sidebar on its landing page. The sidebar shows summary statistics for the product, including request counts and data transfer volume. These metrics are visible to anyone who can view the product, giving potential users a sense of how actively a dataset is being used. + +## Analytics Tab + +Owners, maintainers, and site admins of a data product can access the **Analytics** tab on the product page. This tab provides a more detailed breakdown of usage over time, including: + +- **Requests** — number of requests made to the product's data files +- **Data transfer** — total bytes transferred to users +- **Top files** — which files within the product are accessed most frequently +- **Time range selector** — filter metrics by day, week, or month to spot usage trends + +To view the Analytics tab, open your data product page and click **ANALYTICS** in the tab bar. The tab is only visible when you are signed in as an owner, maintainer, or site admin of that product. diff --git a/sidebars.ts b/sidebars.ts index 2e1cf70..d10c2b3 100644 --- a/sidebars.ts +++ b/sidebars.ts @@ -43,6 +43,7 @@ const sidebars: SidebarsConfig = { }, 'using-source/bring-your-own-bucket', 'using-source/data-proxy', + 'using-source/analytics', ], }, {