Welcome, Guest
Username: Password: Remember me

TOPIC: Reading variable from URL and set it to analytics summary

Reading variable from URL and set it to analytics summary 1 year 11 months ago #86927

  • motyla
  • motyla's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Hi,
I'm trying to send user to the limesurvey via url like:
www.domain.com/survey.php?id=XX-XXXXX
The X is unique variable I set with external tool.

Now in summary in analytics part I would love to detect, that this survey was filled by the user with XX-XXXXX ID.

Is that possible in easy way?

Kind regards
Mariusz
The administrator has disabled public write access.

Re: Reading variable from URL and set it to analytics summary 1 year 11 months ago #86929

  • Fred
  • Fred's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 163
  • Thank you received: 5
  • Karma: 3
The easiest way might be to use the "X" as your token. Enable tokens for the survey and then import a list of participants and put the X in the token. Then it will be included in the custom survey invitation URL that is mailed to each participant and saved with their responses.
The administrator has disabled public write access.

Re: Reading variable from URL and set it to analytics summary 1 year 11 months ago #87030

  • motyla
  • motyla's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
No no.. you've misunderstood me
well, I've already got another application which generates token/ID.
Now I want to direct user via URL like: www.domain.com/survey.php?id=XX-XXXXX, where X is generated by another service.

And I want this token to be saved at the results.

I hope it's clear for now...
The administrator has disabled public write access.

Re: Reading variable from URL and set it to analytics summary 1 year 11 months ago #87035

  • Fred
  • Fred's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 163
  • Thank you received: 5
  • Karma: 3
It's also possible to prefill survey questions using parameters from the URL... Maybe this is what you're looking for.

docs.limesurvey.org/Workarounds%3A+Surve...using_the_survey_URL
The administrator has disabled public write access.

Re: Reading variable from URL and set it to analytics summary 1 year 11 months ago #87148

  • motyla
  • motyla's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Fred, you are the MAN!

Thank you!

Now I am going to verify if URL and token combination works to fill input field with the XX-XXXXX

Regards!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.108 seconds
Donation Image