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

✨ Support Seline Analysis #1640

Merged
merged 3 commits into from
Aug 10, 2024
Merged

✨ Support Seline Analysis #1640

merged 3 commits into from
Aug 10, 2024

Conversation

Weaxs
Copy link
Contributor

@Weaxs Weaxs commented Jul 26, 2024

#1639

| Name | Default | Description |
|-----------------------------------|-----------|-------------------------------------------------------------------------------------------------------------------------------------------|
| `selineAnalytics.token` | _Not set_ | The token generated by Seline Analytics for the website. Refer to the [Analytics docs]({{< ref "partials#analytics" >}}) for more details. |
| `selineAnalytics.enableTrackEvent` | true | When set to `true` track event will add automatically. If you do not want to add track event, set it to `false`. |
Copy link
Contributor

Choose a reason for hiding this comment

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

These should definitely default to false or not set to match all the other analytics engines. Otherwise, you're enabling it for every user by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These should definitely default to false or not set to match all the other analytics engines. Otherwise, you're enabling it for every user by default.

In my opinion enableTrackEvent=true is recommended for optimal data tracking and display.

If you want to customize event tracking, might set it to false, and then add manually invoking umami.track() or seline.track() for specific events.
However, for most users this customization is unnecessary.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, there's an outer guard here in analytics/main.html.

@@ -10,6 +10,7 @@
</script>
{{ end }}

{{ if .Site.Params.umamiAnalytics.enableTrackEvent | default true }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment here -- I don't think these should be defaulting to enabled.

@nunocoracao nunocoracao changed the base branch from main to dev August 10, 2024 09:54
@nunocoracao nunocoracao merged commit cff363f into nunocoracao:dev Aug 10, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants