- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
LimeSurvey piwik intergration?
- vovl
- Topic Author
- Offline
- New Member
Less
More
11 years 5 months ago #88494
by vovl
LimeSurvey piwik intergration? was created by vovl
Hello everyone,
I would like to integrate piwik with LimeSurvey is there any easy way to do it?
I would like to integrate piwik with LimeSurvey is there any easy way to do it?
The topic has been locked.
- holch
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11645
- Thank you received: 2738
11 years 5 months ago #88496
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic LimeSurvey piwik intergration?
How would you like to integrate it?
So that Piwik tracks the usage of the questionnaires?
So that Piwik tracks the usage of the questionnaires?
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- vovl
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
11 years 5 months ago #88516
by vovl
Exactly!
Replied by vovl on topic LimeSurvey piwik intergration?
holch wrote: So that Piwik tracks the usage of the questionnaires?
Exactly!
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13624
- Thank you received: 2490
11 years 5 months ago #88521
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic LimeSurvey piwik intergration?
I already have this idea,
Piwik is really better than google stat ... But don't have time to do.
Put this in feature request
Piwik is really better than google stat ... But don't have time to do.
Put this in feature request
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- holch
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11645
- Thank you received: 2738
11 years 5 months ago #88523
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic LimeSurvey piwik intergration?
Should be no big deal. You need to add the Piwik code at the end of the template. I guess endpage template would be the right place.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13624
- Thank you received: 2490
11 years 5 months ago #88524
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic LimeSurvey piwik intergration?
Yes,
but no .
Because then you don't have : actual setp on each survey. I already used the script in welcome.pstpl, then have difference betwwen each survey.
Like GA, piwik take by default the url, bit you can use automatic settings in LS core : piwik.org/faq/how-to/#faq_62
Use actual code for GA to do a piwik analytics can be a great idea.
Denis
but no .
Because then you don't have : actual setp on each survey. I already used the script in welcome.pstpl, then have difference betwwen each survey.
Like GA, piwik take by default the url, bit you can use automatic settings in LS core : piwik.org/faq/how-to/#faq_62
Use actual code for GA to do a piwik analytics can be a great idea.
Denis
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- vovl
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
11 years 5 months ago #88526
by vovl
Thanks for all your responses!
Replied by vovl on topic LimeSurvey piwik intergration?
It's already thereDenisChenu wrote: Put this in feature request
Do you think that this will work?jolch wrote: Should be no big deal. You need to add the Piwik code at the end of the template. I guess endpage template would be the right place.
Thanks for all your responses!
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13624
- Thank you received: 2490
11 years 5 months ago #88527
by DenisChenu
Think piwik can be added to surveylist.pstpl and welcome.pstpl.
Then each visit are separated by survey or surveylisting.
Put solution : ideas.limesurvey.org/ideatorrent/idea/397/
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic LimeSurvey piwik intergration?
For template,vovl wrote: Do you think that this will work?
Think piwik can be added to surveylist.pstpl and welcome.pstpl.
Then each visit are separated by survey or surveylisting.
Put solution : ideas.limesurvey.org/ideatorrent/idea/397/
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
11 years 5 months ago #88947
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic LimeSurvey piwik intergration?
vovl, once you succeeded to integrate piwik, maybe you can create a short tutorial for other users?!
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
- vovl
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
11 years 5 months ago #88948
by vovl
Replied by vovl on topic LimeSurvey piwik intergration?
Apparently I was hoping for support on how to do that.Mazi wrote: vovl, once you succeeded to integrate piwik, maybe you can create a short tutorial for other users?!
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13624
- Thank you received: 2490
11 years 4 months ago #88975
by DenisChenu
Just add
piwikTracker.setDocumentTitle("{QID}");
To default piwik code.
Denis
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic LimeSurvey piwik intergration?
Did you try, in welcomepage.pstl only:vovl wrote:
Apparently I was hoping for support on how to do that.Mazi wrote: vovl, once you succeeded to integrate piwik, maybe you can create a short tutorial for other users?!
Code:
<!-- Piwik --> <script type="text/javascript"> var pkBaseURL = (("https:" == document.location.protocol) ? "https://piwik.example.net/" : "http://piwik.gsill.net/"); document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); </script><script type="text/javascript"> try { var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1); piwikTracker.setDocumentTitle("{QID}"); piwikTracker.trackPageView(); piwikTracker.enableLinkTracking(); } catch( err ) {} </script><noscript><p><img src="http://piwik.example.net/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript> <!-- End Piwik Tracking Code -->
piwikTracker.setDocumentTitle("{QID}");
To default piwik code.
Denis
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: brettd
The topic has been locked.
- DonMartin
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
11 years 3 months ago #90962
by DonMartin
Replied by DonMartin on topic LimeSurvey piwik intergration?
This has not worked for me nor did the solutions posted previously. So I appreciate that this is probably not the correct method or indeed good practice but here is my solution.
1.Assuming Piwik is installed and setup add your Limesurvey root URL as a website to track e.g. www.somewebsite.com/limesurvey (in piwik 1.9.2 this is done by going Settings > Websites > Add new website)
2.This will generate the custom Piwik Javascript tracking code, it will look almost identical to the above posted by Denis.
3.Create a new blank html document, with nothing in it, place the Javascript code just before the </body> tag.
4.Upload the documents to your template folder.
5.Open your welcome.pstpl in the last section after (WELCOME) but before any closing </td></tr></table> tags (this will depend on your template) add a link to your blank page using an iframe.
You then need to style the iframe (not the embedded page) using CSS to make it invisible, you can either add this to your template CSS or do it inline. Below is an example:
<iframe name='iframe1' id="iframe1" src="/templates/mytemplate/blank.html" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 0px;"></iframe>
If you keep this in templates you will not need to worry when you run a LS update. If you use more than one template just replicate it there as well.
…there must be a better way but I have not found it. :blush:
1.Assuming Piwik is installed and setup add your Limesurvey root URL as a website to track e.g. www.somewebsite.com/limesurvey (in piwik 1.9.2 this is done by going Settings > Websites > Add new website)
2.This will generate the custom Piwik Javascript tracking code, it will look almost identical to the above posted by Denis.
3.Create a new blank html document, with nothing in it, place the Javascript code just before the </body> tag.
4.Upload the documents to your template folder.
5.Open your welcome.pstpl in the last section after (WELCOME) but before any closing </td></tr></table> tags (this will depend on your template) add a link to your blank page using an iframe.
You then need to style the iframe (not the embedded page) using CSS to make it invisible, you can either add this to your template CSS or do it inline. Below is an example:
<iframe name='iframe1' id="iframe1" src="/templates/mytemplate/blank.html" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 0px;"></iframe>
If you keep this in templates you will not need to worry when you run a LS update. If you use more than one template just replicate it there as well.
…there must be a better way but I have not found it. :blush:
The topic has been locked.