- Intercom can be initialised with various ways For visitors
window.intercomSettings = {
app_id: YOUR_APP_ID
}
For Logged in users
{% 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 | |
}; |
# check nvm version in nvmrc file (if present) and load/use it on directory change | |
enter_directory(){ | |
if [ "$PWD" != "$PREV_PWD" ]; then | |
PREV_PWD="$PWD"; | |
if [ -e ".nvmrc" ]; then | |
nvm use; | |
fi | |
fi | |
} | |
export PROMPT_COMMAND="$PROMPT_COMMAND enter_directory;" |
<script> | |
// Get UTM Params | |
var querystring = document.location.search; // Get the string after the domain | |
querystring = querystring.substring(1); // Remove the leading "?" | |
querystring = querystring.split('&'); // Split the string in utm variables | |
var utms = {}; | |
for (var i = 0; i < querystring.length; i++) { |
<script> | |
var APP_ID = "appid" // replace appid with your actual app id | |
window.intercomSettings = { | |
app_id: APP_ID | |
{% if current_site_user %} | |
, | |
name: "{{ current_site_user.name }}", | |
email: "{{ current_site_user.email }}", | |
user_id: "{{ current_site_user.id }}" | |
{% endif %} |
<img src="https://path.to.server/images/{{message.author.first_name | fallback: 'Dorian'}}.jpg" height="40" width="40" class="avatar" alt="intercomavatar"> |
var Intercom = require('intercom-client'); | |
var client = new Intercom.Client(APP_ID, API_KEY); | |
var counter = 0; | |
function logUserNames(r) { | |
var users = r.body.users; // set users as the variable for the body > users part of the JSON response | |
$('#myModal').on('shown', function() { | |
$(document).off('focusin.bs.modal'); | |
}); |
String username = 'xxxxxx'; //app id | |
String password = 'yyyyyy'; //api key | |
Blob headerValue = Blob.valueOf(username + ':' + password); | |
String authorizationHeader = 'Basic ' + EncodingUtil.base64Encode(headerValue); |
$http({ | |
method: "POST", | |
url: "https://api.intercom.io/users/bulk", | |
headers: { | |
'Authorization':'Basic '+ btoa("vk5t941k" + ":" + "b7575206e1612ac58220fbc6c34fd57223d27181"), | |
'Content-Type' : 'application/json', | |
'Accept': 'application/json' | |
}, | |
data: { | |
"users" : [ |