Quick Start
You can install Bird web SDK either by using a script tag.
Script tag
The SDK can be instantiated using a script tag with the following attributes:
<script
src="https://embeddables.p.mbirdcdn.net/sdk/v0/bird-sdk.js"
data-config-url="your_config_url"
></script>
<script>
Bird.eventTarget.addEventListener('bird-sdk-initialized', async () => {
await Bird.contact.identify({
strategy: 'Visitor',
identifier: {
key: 'emailaddress',
value: '[email protected]',
},
});
});
</script>
There's no need to initialize the SDK since it will be done automatically and attached to the window under the Bird
namespace.
Last updated
Was this helpful?