mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
Manually track page views for HubSpot and send path without query parameters
This commit is contained in:
@@ -32,7 +32,9 @@ defmodule Web.AnalyticsComponents do
|
||||
</script>
|
||||
<script :if={not is_nil(@hubspot_workspace_id)} type="text/javascript">
|
||||
var _hsq = window._hsq = window._hsq || [];
|
||||
_hsq.push(["setPath", window.location.pathname + window.location.search]);
|
||||
_hsq.push(['setContentType', 'standard-page']);
|
||||
_hsq.push(['setPath', window.location.pathname]);
|
||||
_hsq.push(['trackPageView']);
|
||||
</script>
|
||||
"""
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user