Shopify is deprecating Additional scripts - What you need to do

Blog / Advertiser / Shopify is deprecating Additional scripts - What you need to do
Written by Peter Larsson
Published 30 Aug 2024

Summary

During the latter half of 2024 and the beginning of 2025, Shopify will gradually phase out what are called Order status page additional scripts. It's being replaced with Customer Events and pixels, and it's important that you as an advertiser migrate your Shopify store. We explain how!

Shopify has previously announced that the "Additional scripts" function, with its possibility of adding javascript to the thank you page, will no longer work. Right now, the absolute deadline communicated is set to August 28, 2025, but we encourage Shopify store owners to start looking at migrating to the new way of implementing scripts on the thank you page, namely Customer Events and pixels. Below, we go through step by step what you need to do and why.

Why is Shopify doing this?

Additional scripts have meant a potential security risk and it is considered that Customer events that run in a separate sandbox environment and therefore have limited access, are significantly safer. With Customer events, it is also clearer for the store owner which scripts are running, and it is easy to switch individual scripts on and off without fiddling around in javascript.

This is what you need to do

We will describe what you as an advertiser at Addrevenue with Shopify as a platform need to do, to make the tracking work. But this migration certainly does not only apply to Addrevenue, and will affect all scripts that may be in Additional scripts.

1. Install our app

If you don't already have our app installed, that's the first step. If you have an older installation of the tracking code, it is possible that it is made in the theme and its code. It is an unstable solution, because changing the theme then causes the tracking code to disappear. Log in to our platform and click on Settings > Shopify and follow the instructions there. If you already have our app installed, you can of course skip this step.

2. Install the pixel

Once the app is installed, it opens automatically. If you had it installed before, click on Apps and search for Addrevenue there top open it. Follow the instructions in the app, paying extra attention to the part about installing the conversion script. This is done under Settings > Customer Events, but just carefully follow the instructions in the app to install your Custom Pixel. Be sure to save and connect the pixel afterwards.

3. Remove code from theme

If you didn't have the app installed before, you probably have our code in your theme. It's the old method. Now that you have installed the app, remove the code from the theme so that the tracking code is not loaded twice. Inside Shopify, click on Online Store > Themes and then on the current theme, click on the three dots next to Customize and select Edit code there. In the theme.liquid file, look for the lines that contain something with addrevenue, and delete them. They can e.g. look like this:

<script src="https://addrevenue.io/track.js"></script>
<script>addrevenue_init('984123');</script>

4. Remove Additional scripts

Go to Settings > Checkout and scroll down to Order status page additional scripts. Here is our tracking code, and it starts with the following first line:

<script src="https://addrevenue.io/track.js"></script>

And then 25-30 lines of code follow, ending with </script>. Delete all these lines and Save.

 

This is all that needs to be done to move the tracking code to Customer Events.

If you don't have our app before, install the app and remove the code from the theme.

Regardless of whether you have the app before or not, you create a custom pixel under Customer Events and you remove our code under Additional scripts.

Shopify will also recommend you republish the thank you page. You can and should do this, but note that if you have additional scripts other than ours, these must also be migrated according to the respective service provider's instructions.

We are here for you!

We really understand that this is both a lot of information and scary to tackle for those who have not dealt with code and changes like this before. But don't worry, we're here! We can guide you or even send a request to get "collaborator access" and then we can do this whole migration for you in minutes. Don't hesitate to contact support@addrevenue.io if you need help. And remember, that by August 28, 2025, Shopify will turn off Additional scripts, so be in good time before then to avoid problems.

Peter Larsson
CTO & Co-founder
Read more

Create advertiser account

We're a company that will offer commission to partners if they provide us with sales/transactions/signups.

Error

Error

Error

Error

By submitting I accept addrevenue.io's terms of use and privacy policy.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.