Ecwid.getOwnerId()
This method allows you to receive the store ID. Works on any opened storefront page.
Code example:
var storeId = Ecwid.getOwnerId() console.log(storeId); // prints // 1003
If you need to make this call on the main Instant Site page, use window.instantsite.getSiteId(); call instead.
window.instantsite.getSiteId();
Last updated 1 month ago
Was this helpful?
This site uses cookies to deliver its service and to analyse traffic. By browsing this site, you accept the privacy policy.