PixelYourSite Professional / Head & Footer / Adding Head and Footer Scripts with PixelYourSite

Adding Head and Footer Scripts with PixelYourSite

Last updated: February 12, 2026

This feature lets you add custom code (scripts, pixels, verification tags, widgets) to your site without editing theme files.

You can place code in:

  • the Head (<head>...</head>) — best for verification tags, some pixels, preload/meta scripts
  • the Footer (before </body>) — best for most tracking scripts and widgets

You can also add scripts only on the WooCommerce Order Received (Thank You) page, separately for Head and Footer.

Head and Footer Settings

Head Scripts

Adds your code to the site’s head area.

Footer Scripts

Adds your code to the site’s footer area.

For both Head and Footer you can choose where to load the code:

  • Any device type – runs for everyone
  • Desktop only – runs only on desktop
  • Mobile only – runs only on mobile

Tip: Don’t add the same script in multiple boxes (Any + Desktop/Mobile) unless you intentionally want it to run twice.


WooCommerce Order Received Page Scripts

These scripts run only on the WooCommerce Thank You page (order received page). Useful for:

  • extra conversion tags
  • affiliate / partner tracking
  • post-purchase widgets
  • custom scripts that should fire only after a successful purchase

You get separate areas for:

  • WooCommerce Order Received Head Scripts
  • WooCommerce Order Received Footer Scripts
    and each has:
  • Any device type
  • Desktop only
  • Mobile only

Replacements (Dynamic Placeholders)

At the bottom you’ll see a list of variables you can insert into your code. PixelYourSite replaces them automatically when the script runs.

These dynamic placeholders are part of the Super Pack add-on.

Available placeholders (examples)

Site/content placeholders:

  • [id] – content ID
  • [title] – content title
  • [categories] – content categories

User placeholders:

  • [email] – user’s email
  • [hashed_email] – hashed user email
  • [first_name] – user’s first name
  • [last_name] – user’s last name

Thank You page placeholders (WooCommerce / EDD only):

  • [order_number] – order number
  • [order_subtotal] – order subtotal
  • [order_total] – order total
  • [currency] – currency

How to use them: paste the placeholder directly into your script where you want the value to appear (for example inside a JS variable or URL parameter).


Recommendations (safe setup)

  • Put most scripts in Footer Scripts (Any device type).
  • Use Head Scripts only when a service specifically requires it.
  • Use Order Received Page Scripts for purchase-only tags instead of loading them site-wide.