Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:create:hyperlink-tracking [11.10.2018 08:26]
admin [Record Clicks to an External Website]
en:create:hyperlink-tracking [11.10.2018 08:31]
english [Record Clicks Using JavaScript]
Line 18: Line 18:
  
   * The first solution requires [[:​en:​create:​javascript|JavaScript]] which is activated for most participants.   * The first solution requires [[:​en:​create:​javascript|JavaScript]] which is activated for most participants.
-  * The second solution uses buttons instead of "​normal"​ links. ​This solution works even if JavaScript is deactivated and if someone wishes to leave the questionnaire by clicking ​on the link. +  * The second solution uses buttons instead of "​normal"​ links. ​If the respondent whall leave the questionnaire by clicking the link (and does not return), than this solution works even if JavaScript is disabled
  
 **Important:​** The link cannot be placed on the last page of the questionnaire. If it were, the interview would be finished and no more data could be saved. Instead, you can add an additional page just before the last one, where the content of the last page can be copied. The "​Next"​ button can be hidden using the JavaScript command ''​[[:​de:​create:​soscitools|SoSciTools.submitButtonsHide()]]''​ oder using the PHP command ''​[[:​en:​create:​functions:​buttonhide]]''​ if you do not want to continue to the last page. However, be careful using ''​SoSciTools.submitPage()'',​ which does not work for the second version (see below). **Important:​** The link cannot be placed on the last page of the questionnaire. If it were, the interview would be finished and no more data could be saved. Instead, you can add an additional page just before the last one, where the content of the last page can be copied. The "​Next"​ button can be hidden using the JavaScript command ''​[[:​de:​create:​soscitools|SoSciTools.submitButtonsHide()]]''​ oder using the PHP command ''​[[:​en:​create:​functions:​buttonhide]]''​ if you do not want to continue to the last page. However, be careful using ''​SoSciTools.submitPage()'',​ which does not work for the second version (see below).
Line 63: Line 63:
 If you now click on the link, the value 2 is first stored in the input field of the internal variable. It is not yet stored in the data set. There are now 3 possibilities for this: If you now click on the link, the value 2 is first stored in the input field of the internal variable. It is not yet stored in the data set. There are now 3 possibilities for this:
  
-  - In the properties of the internal variable (click on the variable ​on the left in the navigation),​ you can set "Transfer ​data periodically ​in the background" ​for //Data transfer//.  +  - In the internal variable's properties ​(click on the variable in the navigation ​on the left ), you can change //​Transmission//​ to "Transmit ​data in background ​periodically".  
-  - You can wait for the participant to return to the questionnaire and click "​Next"​. Depending on the design, this can be risky.+  - You can wait for the participant to return to the questionnaire and click "​Next"​. Depending on the design, this can be risky (no data about the click may be stored if the respondent dies not return).
   - When you click on the link, you can automatically switch to the following page in the questionnaire. For this you have to add the command ''​SoSciTools.submitPage()''​. However, this does not work in conjunction with the PHP command ''​buttonHide()''​ mentioned above.   - When you click on the link, you can automatically switch to the following page in the questionnaire. For this you have to add the command ''​SoSciTools.submitPage()''​. However, this does not work in conjunction with the PHP command ''​buttonHide()''​ mentioned above.
  
en/create/hyperlink-tracking.txt · Last modified: 11.10.2018 08:31 by english
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki