SDK Integration
<html>
<body>
<!-- ...Your website content... -->
<script type="module">
import Alli from 'https://sdk.alli.ai/2/alli.esm.min.js';
const main = async () => {
// YOUR_SDK_KEY enters the SDK key written in Alli Dashboard > Project Settings.
await Alli.initialize({ sdkKey: 'YOUR_SDK_KEY' });
// ...
};
main();
</script>
</body><html>
<body>
<!-- ...Your website content... -->
<script type="module">
import Alli from 'https://sdk.alli.ai/2/alli.esm.min.js';
const main = async() =>{
await Alli.initialize({ sdkKey: 'YOUR SDK KEY' });
Alli.setPlacement('YOUR_PLACEMENT')
Alli. setUser ( {
id: 'YOUR_USER_ID',
variables: { EMAIL: 'user@example.com' },
});
// ...
};
main();
</script>
</body>
</html>Last updated