-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Plausible Integration #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Update Makefile with commands to start and stop Plausible service - Update messages regarding services running on different URLs in Makefile - Remove unnecessary command to open localhost:7007 in Makefile
… files - Update `.env.example` with new environment variables - Remove `KUBE_CLUSTER_NAME` from environment variables - Add `BASE_URL`, `SECRET_KEY_BASE`, and `TOTP_VAULT_KEY` to environment variables
- Update `Makefile` to use separate compose file for `plausible-up` - Remove unnecessary flag from `plausible-up` target in `Makefile` - Revise `plausible-down` target in `Makefile` for consistency with new compose file usage
- Add Traefik service configuration to compose.yaml - Modify Backstage service labels and configuration - Enable env_file for Backstage service
- Add configuration for `plausible` with `enabled` set to `false` in `app-config.example.yaml` - Add `plausible` domain configuration for `${PLAUSIBLE_DOMAIN}` in `app-config.production.yaml` - Update `plausible` configuration with `enabled` set to `true` and `domain` set to `${PLAUSIBLE_DOMAIN}` in `app-config.yaml` - Remove `GITHUB_TOKEN` value and update `BASE_URL` and add `PLAUSIBLE_DOMAIN` values in `.env.example`
- Update development documentation with instructions for creating a new plugin - Document validation commands for schemas and frontend configuration - Add new documentation file for tracking analytics using Plausible - Document local development commands for Plausible Analytics
…t target - Added Traefik service configuration for API and Dashboard - Defined Plausible database service with PostgreSQL 16 - Included Plausible events database with ClickHouse server configuration - Configured Plausible service with dependencies and Traefik routing - Added a `lint` target to run linting and TypeScript compilation in the Makefile
- Add new files and directories for the Plausible plugin - Update imports and configurations across different files - Remove unused imports and functions from Home page component
- Add new enum member `SIDEBAR_PIN_STATE` to `LocalStorageKeys` - Update ESLint configuration to include custom rule for 'no-unused-vars' with specific varsIgnorePattern
PR Review 🔍
|
PR Code Suggestions ✨
|
…state - Refactor test descriptions to accurately represent disabled state with provided domain - Update config object to reflect disabled state with specific domain - Make necessary changes for better code readability and maintainability
- Update Makefile to use `cp -n` instead of `cp` in the `init` task - Add `init` task as a dependency for various other tasks in the Makefile
- Add lint step to build workflow - Combine test and build steps in build workflow without empty line
- Refactor Makefile for improved readability and error handling - Update target naming conventions for clarity and consistency
- Update Makefile to include installation step in lint target - Improve project's code quality by ensuring linting step includes installation of dependencies
- Update linting script in Makefile to run `yarn lint:all` - Increase code quality by ensuring consistent linting across all files
User description
plausible
tracking.PR Type
Enhancement, Documentation, Tests
Description
Changes walkthrough 📝
21 files
App.tsx
Integrate PlausibleAnalytics component in App root.
packages/app/src/App.tsx
PlausibleAnalytics
component to the app root.Root.tsx
Clean up imports and add ESLint directive.
packages/app/src/components/Root/Root.tsx
useState
import.LocalStorageKeys
.HomePage.tsx
Remove unused imports and functions.
packages/app/src/components/home/HomePage.tsx
useRef
import and related scroll functions.config.d.ts
Define Plausible configuration interface.
plugins/plausible/config.d.ts
index.tsx
Add development entry point for Plausible plugin.
plugins/plausible/dev/index.tsx
PlausibleAnalytics.tsx
Implement PlausibleAnalytics component.
plugins/plausible/src/components/PlausibleAnalytics.tsx
PlausibleAnalytics
component to inject Plausible script.index.ts
Export PlausibleAnalytics component and plugin.
plugins/plausible/src/index.ts
PlausibleAnalytics
component andplausiblePlugin
.plugin.ts
Define Plausible plugin.
plugins/plausible/src/plugin.ts
routes.ts
Define route reference for Plausible plugin.
plugins/plausible/src/routes.ts
.eslintrc.js
Update ESLint configuration with custom rule.
packages/app/.eslintrc.js
variables.
.eslintrc.js
Update ESLint configuration with custom rule.
packages/backend/.eslintrc.js
variables.
.eslintrc.js
Add ESLint configuration for Plausible plugin.
plugins/plausible/.eslintrc.js
.env.example
Update environment variables for Plausible.
.env.example
Makefile
Update Makefile with Plausible commands and lint target.
Makefile
app-config.example.yaml
Add example configuration for Plausible.
app-config.example.yaml
app-config.production.yaml
Add production configuration for Plausible.
app-config.production.yaml
app-config.yaml
Add main configuration for Plausible.
app-config.yaml
compose.plausible.yaml
Add Docker Compose configuration for Plausible.
compose.plausible.yaml
compose.yaml
Update Docker Compose configuration with Traefik.
compose.yaml
environment file.
package.json
Add Plausible plugin dependency.
packages/app/package.json
package.json
Create package.json for Plausible plugin.
plugins/plausible/package.json
2 files
plugin.test.tsx
Add tests for PlausibleAnalytics component.
plugins/plausible/src/plugin.test.tsx
PlausibleAnalytics
component.setupTests.ts
Add Jest DOM setup for testing.
plugins/plausible/src/setupTests.ts
3 files
development.md
Update development documentation.
docs/development.md
instructions.
tracking.md
Add tracking documentation for Plausible.
docs/tracking.md
README.md
Add README for Plausible plugin.
plugins/plausible/README.md