Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. __________
  2. Basic JavaScript for website visitors
  3. Copy and paste this code snippet before the </body> tag on every page you want the Messenger to appear for website visitors.
  4.  
  5. ___________
  6.  
  7. <script>
  8. window.intercomSettings = {
  9. app_id: "gcr9exbk"
  10. };
  11. </script>
  12. <script>(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/gcr9exbk';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>
  13.  
  14.  
  15. ________
  16. Basic JavaScript for logged-in users
  17. In the code snippet below, replace the example variables in the window.intercomSettings object with your own variables for user data. Then, copy and paste the snippet before the </body> tag on every page you want the Messenger to appear for logged-in users. Learn more
  18. ________
  19. <script>
  20. window.intercomSettings = {
  21. app_id: "gcr9exbk",
  22. name: "Jane Doe", // Full name
  23. email: "customer@example.com", // Email address
  24. created_at: "1312182000" // Signup date as a Unix timestamp
  25. };
  26. </script>
  27. <script>(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/gcr9exbk';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>
  28.  
  29.  
  30.  
  31. ______
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement