-
Notifications
You must be signed in to change notification settings - Fork 3
/
intercomnative.html
36 lines (29 loc) · 1.74 KB
/
intercomnative.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Native Intercom Implementation</title>
<script>
window.intercomSettings = {
api_base: "https://api-iam.intercom.io",
app_id: "rtrxe81v",
activador:'#my_custom_link'
//user_id: user.id, // IMPORTANT: Replace "user.id" with the variable you use to capture the user's ID
//name: user.name, // IMPORTANT: Replace "user.name" with the variable you use to capture the user's name
//email: user.email, // IMPORTANT: Replace "user.email" with the variable you use to capture the user's email address
//created_at: user.createdAt, // IMPORTANT: Replace "user.createdAt" with the variable you use to capture the user's sign-up date
};
</script>
<script>
// We pre-filled your app ID in the widget URL: 'https://widget.intercom.io/widget/rtrxe81v'
(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/rtrxe81v';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);};if(document.readyState==='complete'){l();}else if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();
</script>
</head>
<body>
<h1>Intercom Integration Test Page</h1>
<p>This is a sample page for testing Native Intercom Implementatio</p>
<!-- Intercom Launcher -->
<button id="my_custom_link" onclick="Intercom('show');">Chat with us</button>
</body>
</html>