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

  1. Go to Website → General → Analytics and Tracking
  2. Find the Header Code field

What You Can Use Header Code For

  1. Google Ads remarketing tags
  2. Meta (Facebook) Pixel
  3. Event tracking scripts
  4. Third-party verification codes
  5. Other external tracking tools

What Should Go Here

  1. Any script that starts with <script>
  2. Example formats:

    • <script>...</script>

    • <script async src="..."></script>


Important Rules

  1. Do not use Header Code for GA4 if you already added your Measurement ID in the GA4 field
  2. Do not duplicate tracking codes (this causes double tracking issues)
  3. Use Header Code only for full scripts that cannot be added via a dedicated field