⚠️ There are now 2 versions of OneClickUpsell. If the app was installed from the Shopify App store, you’re using the OneClickUpsell Native version which has a blue/orange color scheme. For the OCU Native knowledge base click here.

The Global Offer Page Scripts field is available so that you can easily add your offer page scripts that you want used on ALL offer pages in one location. Once you add the script(s) there, they will automatically be included on all offer pages. Using this field, you can add additional scripts to your OCU offer pages like a language translation app widget for example. 

To access the Global Offer Page Scripts section, go to Settings > General > Advanced Settings > Additional Scripts

Then paste in the script(s) you want used and click the Save button! 


1. All scripts and Shopify inclusions will be loaded each time the "live" offer page is loaded. The script(s) will not fire when viewing a "preview" of the offer page. 

2. Shopify inclusions can be pasted in the following way:
You need to add shopify_tag_  before the include like this: {% shopify_tag_include 'weglot_hreftags' %} 

If you use any script that contains HTML tags you need to enclose it in an {% external_script %}  tag.

For example, if the initial code is like this:
{% include 'weglot_hreftags' %}{% include 'weglot_switcher' %}

Then this is what you'd enter into the Global Offer Page Scripts field:
{% external_script %} {% shopify_tag_include 'weglot_hreftags' %}{% shopify_tag_include 'weglot_switcher' %}{% endexternal_script %}

3. Do not use this field to track conversions because scripts pasted will be executed each time the page is loaded. Shopify liquid variables wouldn't work correctly when pasted into this field as it will cause incorrect tracking and over-reporting.

4. Do not use the {% if first_time_accessed %}  tag in this field because it wouldn't work correctly there. The script(s) will fire each time a "live" offer page loads.

Did this answer your question?