Skip to main content
All CollectionsUserWay Widget
Load a fixed version of the UserWay Javascript via the UserWay CDN
Load a fixed version of the UserWay Javascript via the UserWay CDN

Some of our customers prefer to test fixed versions of the UserWay Widget before releasing it to production.

Updated this week

Follow this guide to load the latest version of the UserWay Widget Javascript.

Step 1: Log into the UserWay Dashboard at https://manage.userway.org

Step 2: Click Developer Resources

Developer Resources

Step 3: Scroll down to the Widget section on the right panel and click on /api/open/v0/consumer/widget/sri/latest.

widget API

Step 4: Click Try it out

try it out

Step 5: Click Execute

execute

Step 6: Scroll down and copy the JS file with the format: widgetapp/{YYYY-MM-DD…}/widget_app_{version}.js

Latest Widget Javascript Version

Step 7: Update your Embed Code script with the script from the API call and the optional SRI hash.

Account Id

Step 8: Example Fixed Version script (Must add async="" id="a11yWidgetSrc" crossorigin="anonymous"):

<script 
src="https://cdn.userway.org/widgetapp/2024-11-27-07-45- 03/widget_app_1732693503366.js"
async=""
id="a11yWidgetSrc"
crossorigin="anonymous"
integrity="sha256-BXoe7DKX7fdsXZgOc+JajX5qpXjZdgy/grFIj3xuth8="
data-account="{UW_ACCOUNT_ID}">
</script>

Step 9: Recommended: Place the embed code above as the first entry in your site’s <head> tag. (optionally, you can also place the embed code before the closing </body> tag)

Step 10: Ensure the domain is added to your UserWay Dashboard.

IMPORTANT: If you plan on using the fixed version method of the UserWay Widget Script, please ensure that it is updated quarterly as UserWay does not support all old versions forever.

If you encounter any issues, please contact the UserWay Support team at desk@support.userway.org

Did this answer your question?