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 11 months ago
Was this helpful?