WooCommerce “order-received” scripts

You can add scripts to the WooCommerce default “Thank You Page” (order-received).

Open PixelYourSite from the left side menu of your WordPress dashboard and click on the “Head & Footer” link in the right side menu.

Disable global scripts

You have the option to disable global scripts on the WooCommerce order-received page:

Head Scripts

You can add scripts for:

  • all devices
  • desktop only
  • mobile only

Footer Scripts

You can add scripts for:

  • all devices
  • desktop only
  • mobile only

Variables

You can use the following WooCommerce variables inside your scripts:

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