-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathIntercom_native_v3.html
More file actions
35 lines (31 loc) · 1.36 KB
/
Copy pathIntercom_native_v3.html
File metadata and controls
35 lines (31 loc) · 1.36 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Intercom Native Integration Page</title>
<!-- Intercom Settings -->
<script>
window.intercomSettings = {
app_id: "rtrxe81v",
custom_launcher_selector: ".uala-chat-support"
};
</script>
<!-- Intercom Script -->
<script>
(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',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(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();
</script>
</head>
<body>
<h1>Intercom Native Integration Page</h1>
<p>This page uses the native Intercom snippet for integration.</p>
<!-- Chat Button -->
<button class="uala-chat-support">Contact Chat</button>
<script>
// Add click listener to log button interaction
document.querySelector('.uala-chat-support').addEventListener('click', () => {
console.log('Chat button clicked!');
});
</script>
</body>
</html>