Stop double-tracking page views for HubSpot

This commit is contained in:
Andrew Dryga
2024-05-21 17:01:51 -06:00
parent f16fc2393b
commit fac07808a0

View File

@@ -30,12 +30,6 @@ defmodule Web.AnalyticsComponents do
src={"//js.hs-analytics.net/analytics/1716219600000/#{@hubspot_workspace_id}.js"}
>
</script>
<script :if={not is_nil(@hubspot_workspace_id)} type="text/javascript">
var _hsq = window._hsq = window._hsq || [];
_hsq.push(['setContentType', 'standard-page']);
_hsq.push(['setPath', window.location.pathname]);
_hsq.push(['trackPageView']);
</script>
"""
end