Skip to content
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

Foundation for Basic Analytics Implementation #3301

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

jagabomb
Copy link
Contributor

@jagabomb jagabomb commented Feb 14, 2025

Description

This PR aims to incorporate a basic implementation of Analytics with Posthog using its autocapture feature and a custom view for pageviews (due to react SPA).

This also adds configurable values for to:

  1. Enable/Disable Analytics
  2. Set the domain used for analytics
  3. Set the key/code used for analytics.

Additional PRs will be created for tasks like:

  1. Adding additional variables like environment and release.
  2. Creating the View to prompt the user to opt-in to the Analytics
  3. View for the Settings screen to show a section where a user can manage there Analytics collection preference.

How was this tested?

Describe the tests that have been added/changed for this new behavior.

  • DONE Checks if Analytics Setting is Enabled

Did you update the documentation?

Add a documentation PR or write that no changes are required for the documentation.

  • DONE

@jagabomb jagabomb added enhancement New feature or request ux proposal labels Feb 14, 2025
@jagabomb jagabomb self-assigned this Feb 14, 2025
@jagabomb jagabomb requested a review from arbulu89 February 14, 2025 10:05
@@ -13,7 +13,7 @@ defmodule Trento.Settings.InstallationSettings do
@derive {Jason.Encoder, except: [:__meta__, :__struct__]}
@primary_key {:id, :binary_id, autogenerate: true}
schema "settings" do
field :eula_accepted, :boolean, source: :installation_settings_eula_accepted
# field :eula_accepted, :boolean, source: :installation_settings_eula_accepted
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line has been commented out to enable installation_id to be returned. I would be interested in another way to solve this since eula_accepted column seems to have been removed from the table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request proposal ux
Development

Successfully merging this pull request may close these issues.

2 participants