Created
December 4, 2017 02:02
-
-
Save dorian-davis/c3d85393d9e3ba5f960ed26a1d772d4c to your computer and use it in GitHub Desktop.
Add Intercom to liquid powered thinkific themes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if Thinkific.current_user %} | |
<script> | |
window.intercomSettings = { | |
app_id: "YOUR_APP_ID", | |
name: Thinkific.current_user.full_name, // Full name | |
email: Thinkific.current_user.email, // Email address | |
alignment: 'right', | |
horizontal_padding: 20, | |
vertical_padding: 60 | |
}; | |
</script> | |
{% else %} | |
<script> | |
window.intercomSettings = { | |
app_id: "YOUR_APP_ID", | |
alignment: 'right', | |
horizontal_padding: 20, | |
vertical_padding: 60 | |
}; | |
</script> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment