Skip to main content
Version: v1

Setup

The code in this snippet sets up the components to read & save user selections correctly.

The contents of this snippet may either be included as it's own tag which is fired before other Beam tags, or can be included directly in each tag.

Beam Initialization Tag

  • Tag Type: Custom HTML
  • Support document.write: Yes
  • Tag Sequencing: Fires before all other Beam tags
<!-- BEGIN Beam Initialization -->
<script type="module">
import { init } from "https://sdk.beamimpact.com/web-sdk/v1.39.2/dist/integrations/beam.js"

var beam = await init({
apiKey: "{{ storefront_component_api_key }}",
chainId: {{ chain_id }},
storeId: {{ store_id }},
domain: "{{ domain }}",
baseUrl: "{{ base_url }}"
});
</script>
<!-- END Beam Initialization -->