Skip to content

Commit

Permalink
πŸ“ Update document
Browse files Browse the repository at this point in the history
  • Loading branch information
ldslds449 committed Apr 1, 2024
1 parent 35fe493 commit 0410aa4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/overrides/partials/integrations/analytics/custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<script>
/* Wait for page to load and application to mount */
document.addEventListener("DOMContentLoaded", function() {
let path = window.location.pathname;
let real_path = path.replace("{{ config.site_url }}", "");
umami.track(props => ({ ...props, url: real_path }));
let url = window.location.href;
let real_url = url.replace("{{ config.site_url }}", "/");
umami.track(props => ({ ...props, url: real_url }));
})
</script>

0 comments on commit 0410aa4

Please sign in to comment.