ScriptTag shop query parameter showing up as domain instead of myshopify domain

andrewroundtrip
New Member
7 0 0

We have some apps that use the ScriptTag API that rely on the shop query parameter that is appended to the script URL for some functionality.

Previously it was always set to the shop's myshopify.com domain (which makes sense) but in the last two days we've been receiving a lot of traffic where our script is being loaded with the shop's domain (e.g., "www.example.com") instead of their myshopify domain (e.g,. "example.myshopify.com").

We're going to implement a workaround but can someone from Shopify clarify expected behaviour here regarding the shop query parameter and/or update the ScriptTag API documentation?

0 Likes
andrewroundtrip
New Member
7 0 0

False alarm -- we had some shops that were using shop.domain instead of shop.permanent_domain in their liquid templates when trying to access our script for non-ScriptTag API scenarios.

0 Likes