Memberid is automatically appended to activity links. To capture this value, the external survey must have a hidden question called memberid. If your third-party vendor prevents renaming variables or creating a variable named memberid, you will need to import the memberid data as a new profile variable in your community. Then, the profile variable can be appended to the redirect link.
Note: This workaround is intended for respondents that will not be redirected back to the activity.
Example
You would like to redirect respondents at the end of your survey to a vendor site and pass the memberid through the redirect link, but you can not created a variable named memberid in your third-party application. You decide to create a new profile variable in your community and call it token.
Detailed Steps
Export the memberid
- In the Community app, click Community > Member Groups. If necessary, create a member group including all the members that will participate in this activity.
- On the toolbar, click Export.
- On the Export Profile Data page, click New.
- In the Member Group section of the dialog, select your member group.
- Click Export.
- Use this export to prepare your import file.
Prepare the CSV file
- Copy the memberid column and paste it into a new Excel file twice.
- Change the column name of the second column. Using the example above, you would change this to token.
- Make sure that the first column on your file is memberid and that everything lines up.
- Save your file as .CSV.
Import the profile variable
- In the Community app, click Community > Profile Variables.
- On the Profile Variables toolbar, click Import.
- Click Choose File, select a CSV file to import, and click Open.
- Click Upload.
Append the profile variable to the redirect link
- In your survey, add an End Survey action.
- Under End survey behavior, click either Display message and redirect or Automatically redirect.
- Insert the redirect link into the Redirect to URL field.
- Place your cursor at the end of the redirect link.
- Click Add a pipe { } button. Using the example above, you would select token from the drop down list.
- Test your survey and the workflow.
Comments
0 comments
Article is closed for comments.