Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Bryon_S Posted August 6, 2020 Posted August 6, 2020 I'm trying to get a LiveChat widget/popup working on my Invision site. We have it working on our normal company website, but the java snippet provided by LiveChat doesn't seem to work. There documentation says to paste it right before </body> so I tried this in globalTemplate and it does not work. I tried it also right before </head> as per some suggestions for Java scripts here in the forum. It just doesn't seem to do anything. Am I missing something? Is there something I need to enable? The code provided is: <!-- Start of LiveChat (www.livechatinc.com) code --><script> window.__lc = window.__lc || {}; window.__lc.license = XXXXXXX; ;(function(n,t,c){function i(n){return e._h?e._h.apply(null,n):e._q.push(n)}var e={_q:[],_h:null,_v:"2.0",on:function(){i(["on",c.call(arguments)])},once:function(){i(["once",c.call(arguments)])},off:function(){i(["off",c.call(arguments)])},get:function(){if(!e._h)throw new Error("[LiveChatWidget] You can't use getters before load.");return i(["get",c.call(arguments)])},call:function(){i(["call",c.call(arguments)])},init:function(){var n=t.createElement("script");n.async=!0,n.type="text/javascript",n.src="https://cdn.livechatinc.com/tracking.js",t.head.appendChild(n)}};!n.__lc.asyncInit&&e.init(),n.LiveChatWidget=n.LiveChatWidget||e}(window,document,[].slice))</script><noscript><a href="https://www.livechatinc.com/chat-with/XXXXXXX/" rel="nofollow">Chat with us</a>, powered by <a href="https://www.livechatinc.com/?welcome" rel="noopener nofollow" target="_blank">LiveChat</a></noscript><!-- End of LiveChat code --> XXXXXX is where our license code goes....I took it out to post here. Any help is appreciated.
CoffeeCake Posted August 6, 2020 Posted August 6, 2020 You can look in Google Chrome console to see what javascript errors you're encountering. https://developers.google.com/web/tools/chrome-devtools/open
Bryon_S Posted August 6, 2020 Author Posted August 6, 2020 We aren't getting any errors. It just doesn't seem to execute.
Joy Rex Posted August 6, 2020 Posted August 6, 2020 29 minutes ago, Bryon_S said: I'm trying to get a LiveChat widget/popup working on my Invision site. We have it working on our normal company website, but the java snippet provided by LiveChat doesn't seem to work. There documentation says to paste it right before </body> so I tried this in globalTemplate and it does not work. I tried it also right before </head> as per some suggestions for Java scripts here in the forum. It just doesn't seem to do anything. Am I missing something? Is there something I need to enable? The code provided is: <!-- Start of LiveChat (www.livechatinc.com) code --><script> window.__lc = window.__lc || {}; window.__lc.license = XXXXXXX; ;(function(n,t,c){function i(n){return e._h?e._h.apply(null,n):e._q.push(n)}var e={_q:[],_h:null,_v:"2.0",on:function(){i(["on",c.call(arguments)])},once:function(){i(["once",c.call(arguments)])},off:function(){i(["off",c.call(arguments)])},get:function(){if(!e._h)throw new Error("[LiveChatWidget] You can't use getters before load.");return i(["get",c.call(arguments)])},call:function(){i(["call",c.call(arguments)])},init:function(){var n=t.createElement("script");n.async=!0,n.type="text/javascript",n.src="https://cdn.livechatinc.com/tracking.js",t.head.appendChild(n)}};!n.__lc.asyncInit&&e.init(),n.LiveChatWidget=n.LiveChatWidget||e}(window,document,[].slice))</script><noscript><a href="https://www.livechatinc.com/chat-with/XXXXXXX/" rel="nofollow">Chat with us</a>, powered by <a href="https://www.livechatinc.com/?welcome" rel="noopener nofollow" target="_blank">LiveChat</a></noscript><!-- End of LiveChat code --> XXXXXX is where our license code goes....I took it out to post here. Any help is appreciated. Is your forum domain registered to use LiveChat? Bryon_S 1
Bryon_S Posted August 6, 2020 Author Posted August 6, 2020 Found the issue - Joy Rex was right - it was that the domain wasn't registered with LiveChat. Our MAIN domain is, but the specific subdomain wasn't. Thanks Joy Joy Rex 1
Recommended Posts