How-to: External Survey Start



The ā€œexternal survey startā€ ofĀ EFSĀ allows to send survey participants from one project to a second project and to redirect them upon completion. This can be necessary in the following situations, for example:

  • You want your panelists to take part in a project that was created by somebody else on anotherĀ EFSinstallation or using external software. However, for the incentive management in your panel you would like to record which panelists have completed the survey.

  • You want to conduct a conjoint survey using external survey software, the frame survey is to be created withĀ EFS, though.

Technical Background

The external survey start is based on the use of GET parameters. GET parameters are variable values that are transferred to a page via the URL. This is a well-established standard web technology. It has already been used inĀ EFSĀ for a long time, e.g. for the transfer of external data to a survey via URL parameters.

Constructing URLs with GET Parameters

When adding GET parameters to a URL the following rules apply:

  • The GET parameter(s) must be separated from the actual URL by a question mark (?). This way the server can distinguish the actual URL from the GET parameter(s).

  • ō°€If more than one GET parameter is added, then they must be separated from each other by &.

  • ō°€For every GET parameter the URL lists first the variable name, followed by an equation symbol (=) and ultimately the variable value to be transferred. In the example below, a and b are variable names, 1 and seminar are the variable values.Ā Different types of data are possible: In the example, variable a with the value 1 is of the ā€œintegerā€ type, variable b with the value ā€œseminarā€ is of the ā€œtextā€ type.

External Survey Start in Practice

The external survey start inĀ EFSĀ makes use of GET parameters to send survey participants from one project to a second project, to authenticate and subsequently redirect them. In this chapter you will configure an external survey start yourself, linking twoĀ EFSĀ projects within the same installation.

Creating the Questionnaires and Configuring Forward and Return Jumps

  • Create the primary and secondary projects. The primary project can be of the ā€œanonymousā€ or the ā€œpersonalizedā€ type, for the sake of simplicity the secondary project should be ā€œanonymousā€.

  • Create the first part of the primary questionnaire.

  • Next up is the page that redirects the participants to the secondary survey.

    • Click on + Dynamics and select External Survey Start to create the External Survey Start page.

  • The new page is displayed in the questionnaire view. Click on theĀ link.

  • You are automatically taken to theĀ Page propertiesĀ tab.

  • In the ā€œDestination URL of external surveyā€ field, enter the URL of the secondary project. You will find this in the field labeled ā€œURLā€ in the project information of the secondary project.

  • The other options are configured appropriately for this example by default: ā€œAdd ticketā€ is activated, ā€œUse long clear-text ticketsā€ is deactivated.

  • Confirm by clicking onĀ Save.

  • Create the questionnaire for the secondary project.

  • The final page of the secondary project serves as the jump page to return to the primary survey. This means that instead of filling this page with contents as usual, you click again on theĀ page link to open theĀ Properties (left hand side).

  • Enter the URL of the primary project as the destination URL. This you will find in the project information of the primary project, as explained above.

  • The other options are configured appropriately by default: the checkboxes ā€œAutomatically add ospe.php3ā€ and ā€œAdd return ticketā€ are ticked.

  • Confirm by clicking onĀ Save.

  • Create the second part of the primary project that the participants will complete after the return.

  • The configuration of the questionnaires is now complete.

It is, in principle, not possible that the primary project times out while the participants complete the secondary project.

Testing

When testing, some aspects require special consideration:

  • The external survey start cannot be tested in the preview but only in productive mode.

  • In order to be able to repeatedly test an anonymous survey, you either delete the cookies from the browser after every test run or disable the use of cookies for both projects in the Project properties menu.

  • After testing, both projects have to be compiled in order to delete the data of the testers entirely.

The browser address bar will tell you whether the jump occurs in the desired place. The figure below shows the URL of a questionnaire page in the primary project right before the jump to the secondary project. There you will notice the folder ā€œ3a6fā€ of the sample project.

After the jump, the folder ā€œ38d1ā€ of the secondary project will appear in the same place.

After the return jump the participant is taken back to the primary project with the folder ā€œ3a6fā€. In the URL you will also recognize the automatically or manually inserted attachment ospe.php3 and the GET parameter return_tic which is used to identify the participant and to direct him to the correct page.

Checking the statistics and the export data record

The statistics and the export data record of both primary and secondary project should be showing you the values from your test run. The consecutive number of the respondents (ā€œlfdnā€) is automatically transferred to the secondary project via ā€œticā€. You should be able to locate the ā€œlfdnā€ of a data record in the primary project in the column labeled ā€œexternal_lfdnā€ of the secondary projectā€™s matching data record.

Data Transfer in Detail

During the external survey start information on the participants is transferred from one survey to the other by adding it to the URL as a GET parameter. Basically, this is done in one of the following ways:

  • Identifying participants

  • Authenticating participants in secondary projects with limited participant pool

  • Transferring any data via GET parameters (via URL parameters when jumping forward, via user-defined variables when jumping back)

Identifying Participants and Matching Data Records

If you select the default settings (option ā€œAdd ticketā€Ā activated, option ā€œAdd ticket for target EFS project < 5.2ā€Ā deactivated), the external survey start will be executed automatically based on pre-configured tickets.

  • Parameter ā€œticā€ is transferred at the jump from the primary to the secondary survey, ā€œreturn_ticā€ is transferred at the return jump to the primary project.

  • The parameters ensure that the participants can be identified at the return jump and that they resume the primary project at the correct location.

  • It the jump connects two EFS projects, the tickets ensure that you can match the data records. For this purpose, the consecutive number of the respondents in the primary project is transferred automatically into the variable ā€œexternal_lfdnā€ of the secondary project.

  • If you are using external software and wish to match the data records later, Instead, you have to transfer ā€œticā€, ā€œlfdnā€ or another value that might serve to identify the participants via GET parameter.

EFSĀ allows to customize the external survey start according to special requirements:

  • Both of the ā€œticā€ parameters can be renamed. This can be necessary when you are using external software that requires parameters with different names.

  • You can decide for yourself whether you want to use ā€œticā€ and ā€œreturn_ticā€ at all. If no ticket is added, only the URL (optionally with attached parameters) will be transferred when jumping to the secondary survey. This has the following consequences:

    • It will no longer be possible to jump back to the primary survey.

    • It will no longer be possible without further effort to merge the data from the primary and secondary surveys and match the records of individual participants from both surveys. If you wish to match the data from the primary and secondary surveys without using the tickets, a suitable parameter must be transferred instead of the tickets. For example, you can attach the consecutive number by adding the string ?a=#lfdn# to the destination URL.

    • If you do not want to use the tickets, untick the ā€œAdd ticketā€ checkbox on theĀ Page propertiesĀ tab. By default, this checkbox is ticked.

In addition to the default tickets described above, older tickets, the so-called ā€œplain text ticketsā€, are still kept alive until EFS 8.1. They should be used if the secondary project is located on anĀ EFSĀ installation < 5.2.

  • To use these tickets, please activateĀ the option ā€œAdd ticket for target EFS project < 5.2ā€.

  • As with the default tickets, the consecutive number of respondents (ā€œlfdnā€) in the primary project is stored automatically in the variable ā€œexternal_lfdnā€ of the secondary project to allow matching of data records.

  • Please bear in mind that during the transfer of the ā€œlfdnā€ via GET parameter it is possible for unauthorized users to extract the ā€œlfdnā€.

  • The strings of the plain text tickets are very long. Some web servers may have difficulties processing these strings.

  • Please note that the plain text tickets will be dropped in the next release.

Authenticating Participants in Secondary Projects with Limited Participant Pool

The various EFS products support different project types: anonymous and personalized survey, panel survey, master data survey and employee survey. All of these types can be used both as primary surveys and as secondary surveys.Ā If projects with a clearly-defined participant pool serve as destinations of a jump, an authentication is necessary at the start of the secondary project.

  • When jumping from one personalized project to another, this is realized by using the same code from the secondary project in the primary project, too.

  • When jumping from a panel survey into a personalized project, personalized links are constructed for all participants, containing the codes of the secondary project.

  • Ā If external survey start is used to connect two panel projects, project ID, sample ID and data for authentication must be transferred.

Authentication When Jumping From One Personalized Project to Another

If both primary and secondary project are personalized, then the secondary project requires an authentication. For this, the participantsā€™ authentication codes are used twice: The codes are generated in the secondary project and subsequently imported into a specially created participant variable of the primary project. When jumping from the primary to the secondary project, the codes are transferred as GET parameters to the variable ā€œcodeā€, the authentication is performed automatically. Please proceed as follows:

  • Import the participants into the secondary project or create the accounts manually. The participantsā€™ codes are usually generated by the system. (Alternatively, the codes can also be generated in Excel and imported along with the participants.)

  • Next, the codes of the secondary project have to be extracted and imported into the primary project. Click on theĀ Excel exportĀ orĀ CSV exportĀ button to export the list of participants including the codes. The list of participants can be used as it is as an import file for the primary project.

  • Proceed to import the participant data and codes into the primary project. From EFS 6.0, the codes can be imported directly: they are stored in the ā€œcodeā€ database field.

  • Assign the ā€œcodeā€ column to the appropriate database field when importing into the primary project.

  • The desired participant data including access code are now available in the primary project as well. Next, the jump page has to be configured so as to allow for the automatic authentication by transfer of the code. Switch to the questionnaire of the primary project. Locate the jump page and, select theĀ Edit page propertiesĀ icon.

  • Extend the URL so that the value of the variable #code# of the primary project is transferred to the ā€œcodeā€ field of the secondary survey:Ā http://www.efs-survey.de/xyz/?code=#code#

  • Confirm by clicking onĀ Save.

  • The return page in the secondary project is configured as usual.

You can only import links for panelists who have not started the survey yet, i.e. disposition code is < 20.

Authentication When Jumping From a Panel Survey to a Personalized Project

Since EFS 6.0, panel surveys can be used as target projects. I.e., you can route partici- pants from one panel survey to another, as long as both surveys are placed on the same installation. This option is used quite frequently, in particular in situations when the content of a survey has to be spread over several projects.

There are two possible settings:

  • Only selected panelists can participate

  • All panelists can participate

Only selected panelists can participate

If you want only selected panelists to participate in the two connected projects, please proceed as follows:

  • ō°€ Ā Make sure the participating panelists are members of the samples of both projects.

  • ō°€ Ā The link for the jump from primary to secondary project should look as follows:Ā http://www.your-domain.com/xyz/ ?syid=573&sid=574&pcode=#panelist_code#&pses=#panel_ses#

This contains:

  • syid: Project ID

  • sid: Sample ID of the appropriate sample in the secondary project. You can find this ID by scrolling over the title in the overview of samples with the mouse pointer while observing the link in the status bar of your browser. It looks like this:

    http://www.your-domain.com/ front.php?module=panel_sampling&act=view_sample&pid=610&sid=611

  • pcode: Panelist code.

  • pses: Session ID of the panelists. If you can trust that the panelists have cookies activated, you can drop the session ID. But if you want to allow the jump with cookies switched off, the session ID must be transferred.

All panelists can participate

If you want all panelists to participate in both projects or at least in the secondary project, please proceed as follows:

  • Activate the option ā€œAll panelists can participate in the survey (independent from being in a sample for the survey)ā€ in theĀ Project propertiesĀ menu of both projects resp. only in the secondary project.

  • The link for the jump from primary to secondary project should look as follows: http://www.your-domain.com/xyz/

    ?syid=573&sid=574&pcode=#panelist_code#&pses=#panel_ses#

This contains:

  • syid: Project ID

  • ō°€sid: Sample ID of the ā€œinternalā€ sample of the secondary project.

  • pcode: Panelist code.

  • pses: Session ID of the panelists. If you can trust that the panelists have cookies activated, you can drop the session ID. But if you want to allow the jump with cookies switched off, the session ID must be transferred.

Transferring Data from the Primary to the secondary Project and storing these Data in URL Parameter

The return jump from the secondary to the primary project is a very different situation than the forward jump: The participant is not taken to the start page of a new project but resumes an already started project. Therefore, unlike in the case of the forward jump, the data transfer cannot be done using URL parameters: These can only be processed on the first page of a project. Instead, the data are transferred to user-defined variables (c variables).

The following steps are required:

  • In the Project properties menu of the primary project you create the required user- defined variables. When doing so make sure that the file type matches the values to be transferred.

  • After that, you enter the destination URL for the return jump in the secondary project. It looks as follows: http://www.efs-survey.de/xyz/ospe.php3

  • To this URL you have to add

    • the appropriate user-defined variable of the primary project. In our example, this is ā€œc_0001".

    • the value of the variable. This can be a constant value or also a participant- specific value dynamically inserted via wildcard. In our example, this is the participant variable ā€œu_groupā€.

  • The destination URL would then be, for example:Ā http://www.efs-survey.de/xyz/ospe.php3?c_0001=#u_group#

Besides project folder and ā€œreturn_ticā€, the example URL contains a GET parameter ā€œc_0001ā€ with the value ā€œ11ā€.

Linking More Than Two Projects

It is possible to link more than two projects via external survey start. The following combinations are possible, for example:

  • 1. project ā†’ 2. project ā†’ 3. project ā†’ 2. project ā†’ 1. project

  • 1. project ā†’ 2. project ā†’ 1. project ā†’ 3. project ā†’ 1. project.

Please note that the participants always have to be redirected back along the same path they came. This is necessary as the ā€œticā€ parameters can onlyĀ be used to transfer those data regarding session, jump page etc. of the previous project that are available in the current project.

  • The path 1. project->2. project->3. project->2. project->1. project is possible.

  • The path 1. project->2. project->3. project->1. project->2. project is not possible.

When redirecting from the second to a third project the options ā€œAdd return ticketā€ and ā€œAdd ospe.php3ā€ have to be disabled. They are used for returning primary-project relevant information back to the primary project. They cannot be used to relay secondary-project relevant information to another project.

When analysing the data, please mind that the variable ā€œexternal_lfdnā€ contains the ā€œlfdnā€ of the primary project in all following projects.

Special Considerations when using External Software

You can rename the GET parameters ā€œticā€ and ā€œreturn_ticā€ if this is required for redirecting to a survey that was created using external software.

External Software requires

The relevant function can be found both in the Edit page properties dialog (Figure 3.7) and in theĀ ProjectsĀ ā†’Ā {Selected project}Ā ā†’Ā Project propertiesĀ menu, ā€œGeneral optionsā€ section, in the following fields:

  • Name of ticket variable (external start of survey)

  • Name of ticket variable (when returning from an external survey)

The following names cannot be used, because they are reserved for other purposes: sid, pid, syid, oid.

External Software

It may happen sometimes that you wish to transfer a number of values while the external software is able to evaluate only one GET parameter. In such situations, please check whether there is another option for transferring the desired values.

Sawtooth, for example, can accept only one parameter, however, this may contain several values that are separated by comma. In this case it is possible to transfer both the ā€œticā€ parameter and other values as a comma-separated string.

Suppose you want to transfer the following values:

1, x, #tic

In the EFS primary survey you combine those in a value of the variable ā€œaā€ as follows:

a=1,x,#tic#

Via the wildcard, ā€œticā€ is inserted at a precisely defined position in the URL: Sawtooth is now able to accept the resulting string and break it down by means of an analysis algorithm. This way, the value for ā€œticā€ can be extracted, stored, and subsequently transferred back.

Ā© 2024 Tivian XI GmbH