Buy me a coffee

WooCommerce: Add Script Code to Thank You Page

If you want add script code to Thank You Page WooCommerce . Script code can be Google Analytics, Facebook Pixel, Google Adwords…and many other script codes. Just follow these steps.

In this post, we will learn how to add Google Analytics Script Code to Thank You Page

You can use Code Snippets Plugin, or simply add snippet to functions.php (Appearance > Editor > functions.php)

Step 1. Install and Activate Code Snippets Plugin


Step 2. Add New Snippet


Step 3. Paste these code

Copy these code

and paste


Step 4. Save Changes and Activate



Leave a Comment

Ask me a question, free

If your site is private or in trial, just setup password and share url. See how to:
Please check your email carefully. Recently I got a lot of questions with wrong emails.

If you haven't heard from me within 24 hours please check your junk/spam folder