<script type="text/javascript">
function LemonLearningReady(player) {
player.set({
projectKey: '...',
namespace: '...',
user: {
name: '...',
email: '...',
profiles: [id profil ou 0],
tags: [{
category: "Pays",
values: ["variable used to retrieve the country value of the logged-in user"]
}, {
category: "Role",
values: ["variable used to retrieve the country value of the logged-in user"]
}]
}
}).start()
}
</script>
projectKey: will be provided by your Solutions Engineer.
namespace makes it possible to identify the project textually in order to avoid conflicts between integrations.
user.name and user.email: correspond to the variables for the user's name and email within your application.
profiles: will be provided by your Solutions Engineer.
tags: correspond to tags that can be sent to Lemon Learning to enable educational differentiation (content targeting).
<script type="text/javascript">
function LemonLearningReady(player) {
player.set({
companyKey: '...',
ssoId: '...'
}).start();
}
</script>
companyKey: will be provided by your Solutions Engineer.
ssoId: will be provided by your Solutions Engineer.
<script type="text/javascript">
function LemonLearningReady(player) {
player.set({
projectKey: '...',
namespace: '...',
user: player.userKey('...')
}).start()
}
</script>
projectKey: will be provided by your Solutions Engineer.
namespace makes it possible to identify the project textually in order to avoid conflicts between integrations.
player.userKey: will be provided by your Solutions Engineer.
The call to bundle.js must be placed at the end of the HTML document, just before the closing </body> tag.
⚠️ Important: It is imperative to keep the entire line of code as provided. Please ensure you replace the namespace value with your custom value.
<script charset="utf-8" src="https://static.lemonlearning.com/player/bundle.js" async defer id="lemonlearning-player-embed" data-ui-mode="shadow-dom"></script>