Skip to main content

Virtual Try-On (Pulpo AR) Integration

If your storefront uses the PulpoAR try-on widget:

<script>
window.b2mConfig = {
apiKey: 'YOUR_API_KEY',
customEventLib: 'pulpo',
eventGroups: {
pulpo: {
enabled: true,
events: [
'productLog', 'tryItOn', 'goToProduct',
'chooseModelButtonClick', 'modelSelectionClick',
'cameraButtonClick', 'backButtonClick',
'tryItNowButtonClick', 'addToCart', 'fallBackError'
],
autoTrack: []
}
}
};
</script>
<script src="https://edge.b2metric.com/b2m-web-sdk.js"></script>
The config block is required

The data-custom-event-lib="pulpo" attribute on its own is not enough (the event group can't be declared that way, so every event would be dropped) — the full b2mConfig block above is required.