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

feat(core): remove beacon id and use new duration table #29

Closed
wants to merge 9 commits into from

Conversation

ayuhito
Copy link
Member

@ayuhito ayuhito commented Jun 19, 2024

We previously used a randomly generated ID from the tracker side to help link load and unload events. This method was privacy-preserving as it could not identify a single user (a simple refresh or page navigation changes the ID), however, it still felt shaky being an identifier of some sort.

This creates a new duration table which will send duplicated events with time spent on page data on the unload event, removing the need for an ID to link these events together. For now, storage usage is close to double than before due to duplicate data, however, #7 will eliminate that downside upon implementation.

As queries had to be completely rewritten to accommodate the new table, this PR also introduces full testing for all the stats queries which were previously not present.

@ayuhito ayuhito closed this Jun 19, 2024
@ayuhito ayuhito deleted the feat/remove-tracker-id branch June 19, 2024 21:15
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.

1 participant