How can I embed Zopim chat support into the survey page?

More
2 years 3 months ago #140926 by Sumeet64Singh
Sumeet64Singh created the topic: How can I embed Zopim chat support into the survey page?
Hello everyone
This is my first post on LimeSurvey :woohoo:
My company is into market research and they require a live chat support system. For this I found out Zopim chat which requires me to paste a script into the header files. So I did with my company's website.
You may check it out here
www.confirmr.com (See the small tab in bottom right)
I want the same to be done on www.confirmr.com/survey/592891
We have our product integrated with LimeSurvey. I just cannot get the required files for this purpose. :huh: :dry:
Any sort of help will be generous!
Thanks in advance
Sumeet :laugh:

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #140932 by tpartner
tpartner replied the topic: How can I embed Zopim chat support into the survey page?
You can add to the <head> section in startpage.pstpl of your template.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #140934 by Sumeet64Singh
Sumeet64Singh replied the topic: How can I embed Zopim chat support into the survey page?
Hello tpartner
Tried pasting it but did not work!
Have been tired of looking through the files since last week but just cannot find the right way to do it. I also checked into the files/script paths mentioned at the top of the source code of the survey's page but no luck till now.

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #140943 by tpartner
tpartner replied the topic: How can I embed Zopim chat support into the survey page?
The problem is that you need spaces after opening curly brackets and before closing curly brackets or Expression Manager will try to parse the code.

So, try this in startpage.pstpl:

<!--Start of Zopim Live Chat Script-->
<script type="text/javascript">
	window.$zopim||(function(d,s){
		var z=$zopim=function(c){
			z._.push(c)
		},
		$=z.s=d.createElement(s),
		e=d.getElementsByTagName(s)[0];
 
		z.set=function(o){
			z.set._.push(o)
		};
 
		z._=[];
		z.set._=[];
		$.async=!0;
		$.setAttribute("charset","utf-8");
		$.src="//v2.zopim.com/?496iuWupIGccS9mZgnU9qfZmD29a8E0A";
		z.t=+new Date;
 
		$.type="text/javascript";e.parentNode.insertBefore($,e)
	})(document,"script");
</script>
<!--End of Zopim Live Chat Script-->

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #140963 by Sumeet64Singh
Sumeet64Singh replied the topic: How can I embed Zopim chat support into the survey page?
Hey again
Tried this code but no success :(
Dying to see the chat bar on that page..

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #140983 by tpartner
tpartner replied the topic: How can I embed Zopim chat support into the survey page?
It works for me:


I don't see that you have tried it on your test survey:


Here is a working template:

File Attachment:

File Name: copy_of_default-2.zip
File Size:301 KB

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: Sumeet64Singh

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #141006 by Sumeet64Singh
Sumeet64Singh replied the topic: How can I embed Zopim chat support into the survey page?
Thanks a ton!

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!