From time to time, you may want or need to upgrade your Beam widget versions to take advantage of the latest features, performance improvements, and fixes available. Beam takes backwards compatibility seriously, and we do our best to ensure that later versions of Beam widgets can be easily upgraded to from older versions. In most cases, this is as simple as updating the version number referenced in the Beam widget scripts on your site.
<aside>
💡 The latest version of Beam’s widgets is v1.36.6
</aside>
For example, the Select Nonprofit widget below is using version v1.20.0
, as you will see “v1.20.0” in the <script src="">
URL.
<script
type="module"
async
crossorigin
data-em-disable
data-categories="analytics"
src="<https://production-beam-widgets.beamimpact.com/web-sdk/v1.20.0/dist/components/select-nonprofit.esm.js>"
></script>
<div data-beam-widget="select-nonprofit" data-cart-empty="true">
<beam-select-nonprofit
apiKey="abc-123"
chainId="1"
storeId="1"
lang="en"
postalCode=""
baseUrl="<https://production-central-backend-ne.beamimpact.com>"
></beam-select-nonprofit>
</div>
To perform an upgrade of the widget above, change “v1.20.0” to the version number you are looking to upgrade to, and save the file. That’s it!
In some cases, the version number is embedded within the widget scripts themselves. For example, the cart setup code below is using version v1.19.1
, as you will see “v1.19.1” in the import { ... } from "https://...
URL.
<script type="module" async crossorigin>
import { registerCartIntegration } from "<https://production-beam-widgets.beamimpact.com/web-sdk/v1.19.1/dist/integrations/shopify.esm.js>";
import { events } from "<https://production-beam-widgets.beamimpact.com/web-sdk/v1.19.1/dist/integrations/utils.esm.js>";
...
</script>
To perform an upgrade of the script above, change “v1.19.1” to the version number you are looking to upgrade to, and save the file. Done!
A quick way to find all Beam version references in your site’s code is to search your code for any references to production-beam-widgets.beamimpact.com
. The version number is found in the URL whenever this domain is used. Simply update the version number in all of these URLs!
Additionally, the following checklist can be used as a starting point. It is designed for a standard integration with Beam. Depending on your implementation you may have more, or less, areas of your site that the Beam widget scripts are included.
beam-cart-setup.liquid
, beam-cart-setup.js
, beam-cart-contents.liquid
<script>
to update in your main site template such as theme.liquid
or template.html
beam-select-nonprofit.liquid
or beam-select-nonprofit.js
page.template
or in the page’s source code.beam-community-impact.liquid
if you use Shopifypage.template
or in the page’s source code.beam-cumulative-impact.liquid
if you use Shopify