Check out the LimeSurvey source code on GitHub!

Embed variable into survey for 3rd party tracking? $_GET

More
5 years 7 months ago #63792 by ripcurlksm
We are using a 3rd party to help us get recipients for a survey.

They want to append our url with their own tracking code, so it persists through their survey session and ends with sending them to their URL.

Something like: www.mysurvey.com/index.php?sid=85289& THEIR_ID=XXXXX

I know I can set a URL when the survey is complete, but:

1) How can i embed my survey to do a $_GET on each page and maintain this variable throughout the steps of the survey?
2) This $_GET variable also needs to be inserted into the "End URL"?

Please Log in to join the conversation.

More
5 years 7 months ago - 5 years 7 months ago #63810 by greg_d
Hi,

try adding 'always hidden' short text question to your survey, then pass the 3rd party tracking as a survey URL parameter, like this:
Demo.limesurvey.org/index.php?sid=81779&...3rdPartyTrackingCode
More on this functionality here: docs.limesurvey.org/Workarounds%3A+Surve...using_the_survey_URL

Then, at the end of a survey, you cant retrieve the tracking code by referring to INSERTANS placeholder in the End URL of your survey:
test.com?{INSERTANS:81779X5X9}

More about INSERTANS here:
docs.limesurvey.org/Adding+a+question&st...rom_previous_answers

Maybe it's not exactly what you want, but hope it will help.
Last Edit: 5 years 7 months ago by greg_d.

Please Log in to join the conversation.

More
5 years 7 months ago #63829 by DenisChenu
I think you can use Passthrough fields

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form