mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3838] [MERGED] feat: SH instance analytics data collection #4548
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4548
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3838
Author: @balub
Created: 2/16/2024
Status: ✅ Merged
Merged: 2/21/2024
Merged by: @AndrewBastin
Base:
release/2024.3.0← Head:feat/sh-analytics-collection📝 Commits (10+)
d6b6958chore: installed required packagesa99a21efeat: added analytics related infra-configs6170de9chore: create new posthog modulee685235feat: added method to capture events in posthog module109eb33feat: added new mutation to toggle analytics collection infra-configa74195dchore: made the cronjob run dynamically to collect analytics272d7a2chore: removed Cron decorator from capture method in posthog service fileaf5e33echore: removed unnecessary comments6fa995bchore: changed cronjob duration to every week6b43694chore: set analytics collection to false by default📊 Changes
10 files changed (+10025 additions, -4029 deletions)
View changed files
📝
packages/hoppscotch-backend/package.json(+3 -0)📝
packages/hoppscotch-backend/src/admin/infra.resolver.ts(+20 -0)📝
packages/hoppscotch-backend/src/app.module.ts(+4 -0)📝
packages/hoppscotch-backend/src/errors.ts(+6 -0)📝
packages/hoppscotch-backend/src/infra-config/helper.ts(+10 -0)📝
packages/hoppscotch-backend/src/infra-config/infra-config.service.ts(+30 -1)➕
packages/hoppscotch-backend/src/posthog/posthog.module.ts(+9 -0)➕
packages/hoppscotch-backend/src/posthog/posthog.service.ts(+58 -0)📝
packages/hoppscotch-backend/src/types/InfraConfig.ts(+3 -0)📝
pnpm-lock.yaml(+9882 -4028)📄 Description
Closes HSB-363
Description
In this PR we allow basic analytics to be collected from the hosted SH instance and sent to PostHog. Analytics collection is enabled by default and admins can chose to disable it from the admin dashboard which uses a new mutation to toggle data collection by the instance.
Checks
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.