Set up a website
- Choose the workspace that owns the website’s catalogue.
- Create a publishable key and allow the site’s origins, including any staging origin you will use for testing. An origin includes the scheme and host, such as
https://shop.example.com. - Select the default context and configure the placements your pages need. Use a related-items context on a product page and a discovery context on the homepage.
- Copy the generated installation snippet into your site, or use the platform installation instructions.
- Open a real page, verify that items render, then check Data → Events for views and clicks.
What to check before launch
A publishable key can appear in page source. Client secrets and Platform API keys cannot. If a key must be replaced, update the installed snippet and verify the replacement before revoking the old key.
For several rails on one page, see Context groups. For platform-specific setup, see Shopify and other platforms.

