Customize Your Tracking
This document describes how the HockeyStack website tracking pixel is deployed and emphasizes the customer's complete control over when and how the pixel fires.
Overview
Deployment Methods
1. Direct Page Deployment
<script>
var hsscript = document.createElement("script");
[hsscript.id](<http://hsscript.id>) = "wphs";
hsscript.src = "<https://cdn.jsdelivr.net/npm/hockeystack@latest/hockeystack.min.js>";
hsscript.async = 1;
hsscript.dataset.apikey = "YOUR_API_KEY";
hsscript.dataset.cookieless = 1;
hsscript.dataset.autoIdentify = 1;
document.getElementsByTagName('head')[0].append(hsscript);
</script>2. Tag Manager Deployment
Customer Control Over Pixel Firing
Automatic vs. Manual Tracking
Configuration Options
Attribute
Description
Customer Control
Tag Manager Best Practices
Google Tag Manager
Other Tag Managers
Content Security Policy (CSP)
Key Takeaways
PreviousWhy Website Tracking via HockeyStack’s JS Snippet Outperforms CDP DataNextData Processing from Integrations
Last updated