Integrate JOIN Stories into your Kameleoon A/B tests.
How to proceed ?
â ď¸ Do not inject the HTML embed code directly into Kameleoon.
Kameleoon only injects JavaScript.
Once your widget has been created, retrieve its embed code and adapt it as follows:
const teamName = 'MY_TEAM_NAME'; // ASK CSM
const alias = 'MY_ALIAS';
const divId = 'MY_DIV_ID';
const div = document.getElementById(divId); if (div) { const script = document.createElement('script'); script.src = `https://${teamName}.my.join-stories.com/widgets/${alias}/index.js`; script.setAttribute('data-join-widget-id', divId); script.setAttribute('data-join-widget-alias', alias); script.setAttribute('type', 'text/javascript'); const widgetDiv = document.createElement('div'); widgetDiv.id = [divId, alias].join('-'); div.appendChild(widgetDiv); div.appendChild(script); }
In the code above, replace the following values:
MY_TEAM_NAME | You can obtain this from your Customer Success Manager (CSM). |
MY_ALIAS | Replace it with your widget alias. |
MY_DIV_ID | Replace it with the ID of the target element. |