Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

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

  • Sumeet64Singh
  • Sumeet64Singh's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #140926 by Sumeet64Singh
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:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #140932 by tpartner
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.
The topic has been locked.
  • Sumeet64Singh
  • Sumeet64Singh's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #140934 by Sumeet64Singh
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.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #140943 by tpartner
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:

Code:
<!--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.
The topic has been locked.
  • Sumeet64Singh
  • Sumeet64Singh's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #140963 by Sumeet64Singh
Hey again
Tried this code but no success :(
Dying to see the chat bar on that page..
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #140983 by tpartner
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.
The following user(s) said Thank You: Sumeet64Singh
The topic has been locked.
  • Sumeet64Singh
  • Sumeet64Singh's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #141006 by Sumeet64Singh
Thanks a ton!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose