Last active
June 18, 2020 22:23
-
-
Save thewheat/956aea06573143344ea9 to your computer and use it in GitHub Desktop.
Intercom integration with wix.com. There are some caveats with this installation e.g. Product Tours won't work. See comment below for more details. We have had reports that it doesn't work in some cases but it does seem to function on some sites (e.g. http://timlim96.wix.com/acquire). If you can manually integrate it on your own test non Wix pag…
This file contains hidden or 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
| <script> | |
| // just use the Vistor Install as per https://www.intercom.com/help/install-on-your-product-or-site/quick-install/install-intercom-on-your-website-for-logged-out-visitors | |
| // Notes on Intercom and Wix including possible problems detailed in https://gist.github.com/thewheat/956aea06573143344ea9/ | |
| // Add > More > HTML code | |
| // Select "Code" in settings | |
| // paste this snippet | |
| // update your APP_ID | |
| /* Replace 'APP_ID' with your app ID */ | |
| window.intercomSettings = { | |
| app_id: 'APP_ID' | |
| }; | |
| /* Replace 'APP_ID' with your app ID */ | |
| (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/APP_ID';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> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issues with this approach