What Is Header Code, and When Should I Use It?
What This Is
The Header Code field is used for adding custom scripts to the <head> section of your website. This is for advanced tracking, integrations, or verification tools that require full script installation.
Where to Add Header Code
- Go to Website → General → Analytics and Tracking
- Find the Header Code field
What You Can Use Header Code For
- Google Ads remarketing tags
- Meta (Facebook) Pixel
- Event tracking scripts
- Third-party verification codes
- Other external tracking tools
What Should Go Here
- Any script that starts with <script>
-
Example formats:
• <script>...</script>
• <script async src="..."></script>
Important Rules
- Do not use Header Code for GA4 if you already added your Measurement ID in the GA4 field
- Do not duplicate tracking codes (this causes double tracking issues)
- Use Header Code only for full scripts that cannot be added via a dedicated field