Welcome, Guest
Username: Password: Remember me

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

Embed variable into survey for 3rd party tracking? $_GET 3 years 1 week ago #63792

  • ripcurlksm
  • ripcurlksm's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
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"?
The administrator has disabled public write access.

Re: Embed variable into survey for 3rd party tracking? $_GET 3 years 1 week ago #63810

  • greg_d
  • greg_d's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 47
  • Thank you received: 7
  • Karma: 4
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: 3 years 1 week ago by greg_d.
The administrator has disabled public write access.

Re: Embed variable into survey for 3rd party tracking? $_GET 3 years 1 week ago #63829

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6236
  • Thank you received: 794
  • Karma: 238
I think you can use Passthrough fields
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.110 seconds
Donation Image