Skip to content

Commit

Permalink
Disable page load metrics call for now
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Oct 8, 2024
1 parent 8b15434 commit eb48fe6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ const onPageLoad = async () => {
* Metric collection for development purposes.
* This data will be used to help guide development, design, and user experience decisions.
*/
/*
const parser = new UAParser(navigator.userAgent);
const browser = parser.getBrowser();
const os = parser.getOS();
Expand All @@ -179,6 +180,7 @@ const onPageLoad = async () => {
const { data } = response;
return data.value?.id ?? false;
*/
};
// provide refresh functions for components
Expand Down Expand Up @@ -270,13 +272,9 @@ onMounted(async () => {
service: 'apmt',
});
const id = await onPageLoad();
if (isAuthenticated.value) {
const profile = useUserStore();
posthog.identify(profile.data.uniqueHash);
} else if (id) {
posthog.identify(id);
}
}
});
Expand Down

0 comments on commit eb48fe6

Please sign in to comment.