Skip to main content
Version: v1

Cumulative Impact

  • Tag Type: Custom HTML
  • Support document.write: Yes
  • Tag Sequencing: Fire after "Beam Initialization" tag
<!-- BEGIN Beam Cumulative Impact -->
<script
type="module"
async
crossorigin
data-em-disable
data-categories="analytics"
src="https://sdk.beamimpact.com/web-sdk/v1.39.2/dist/components/cumulative-impact.esm.js"
></script>
<script type="module">
import { getConfig } from "https://sdk.beamimpact.com/web-sdk/v1.39.2/dist/integrations/beam.js";

var beam = getConfig();
await beam.readyPromise;

var component = document.createElement('beam-cumulative-impact');
component.setAttribute('apiKey', beam.apiKey);
component.setAttribute('chainId', beam.chainId);
component.setAttribute('storeId', beam.storeId);
component.setAttribute('lang', "en");
component.setAttribute('baseUrl', beam.baseUrl);

var body = document.querySelector('body');
body.appendChild(component);
</script>
<!-- END Beam Cumulative Impact -->