Skip to content

Instantly share code, notes, and snippets.

@sb8244
Last active Feb 18, 2022
Embed
What would you like to do?
{% if user %}
<script>
window.intercomSettings = {
app_id: "YOUR_APP_ID",
user_id: "{{ user.id }}",
email: "{{ user.email }}",
user_hash: "{{ user.id | encrypt: "hmac", "YOUR_IDENTITY_VERIFICATION_SECRET" }}"
};
</script>
{% else %}
<script>
window.intercomSettings = {
app_id: "YOUR_APP_ID"
};
</script>
{% endif %}
<script>
// The pre-populated script from Step 1
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment