Install the storefront

Learn how to add your OnAnthem storefront to your website.


Once you have completed onboarding, you can add OnAnthem to your website with one small code snippet. You can complete the installation yourself or send the instructions to your developer.

Add the embed code

  1. In your OnAnthem dashboard, go to Storefront, then Appearance.
  2. Make sure your website is listed under Allowed domains.
  3. Copy your embed code — it will look similar to the example below.
  4. Paste the code before the closing </body> tag on your website.
<script async src="https://js.onanthem.com/v1/anthem-checkout.js"
  data-widget-id="…"
  data-publishable-key="…">
</script>

Your embed code contains a unique widget ID and publishable key that attribute each sale to your storefront. Always copy it directly from your dashboard.

Good to know

  • Until your account is verified and you have active merchant connections, the button opens a “Sold out” panel instead of the checkout. To remove the button entirely, set Display settings to Hide under Storefront, then Appearance.
  • You can customize the look of the storefront button and its text under Storefront, then Appearance.
  • Orders appear in your dashboard as soon as they happen.
  • You can remove the embed code at any time to take the storefront off your website.