Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Cookie Policy and HubSpot Tracking Code
Participant
Jun 18, 2019 7:14 AM - edited Jun 18, 2019 7:14 AM
Cookie Policy and HubSpot Tracking Code
Hello,
I need to add the Cookie Policy popup to the extern websites.
Now there is this Page to add some events/functions to the tracking code which usually looks like:
<!-- Load the HubSpot tracking code --> <!-- Start of HubSpot Embed Code --> <script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/{hubId}.js"></script> <!-- End of HubSpot Embed Code -->
to end up like:
<!-- Load the HubSpot tracking code --><!-- Start of HubSpot Embed Code -->
<script type="text/javascript" id="hs-script-loader" async defer src="js.hs-scripts.com{hubId}.js"></script>
<!-- End of HubSpot Embed Code -->
<!-- Check consent status & revoke consent -->
<script>
var _hsq = window._hsq = window._hsq || [];
_hsq.push(['addPrivacyConsentListener']);
_hsq.push(['revokeCookieConsent']);
</script>
What do i need to add to the code / _hsq array, to make sure the cookies will be really deleted and the tracking really stops?
Thanks for your help and answers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content