Survey Response Data and Account Association Solutions
Objectives
- Associate survey response data with user identifiers from third-party systems
- Enable third-party systems to receive response data in real-time
Solution 1: Custom Parameters
- Advantages: Low integration cost
- Disadvantages: Parameters may be forwarded, causing multiple responses to be associated with the same user identifier
Integration Steps
- Set up Custom Links, add a userid field to the survey link, and generate specific links for different respondents
- For example, when using WeChat Official Account, after users log in to your page, you can get their userid like wxid_xxxxxx and append it to the survey link: https://wesurvey.com/s2/8113212/da7a?userid=wxid_xxxxxx
- For example, when using an internal system, if Zhang San's internal ID is zhangsan, append it to the survey link: https://wesurvey.com/s2/8113212/da7a?userid=zhangsan
- Send the survey link to corresponding respondents for completion
- Receive response data through Data Push, the userid field will be included in the payload data
- Or retrieve response data through the Get Response Details API, the userid field will be included in the data
Solution 2: Create Third-party Account (Respondent Side)
Important Note
This feature is available in the Business plan. If you haven't upgraded yet, please upgrade before using this feature.
- Advantages: Rigorous login logic, unique account
- Disadvantages: Higher integration cost, requires combination of multiple APIs
Integration Steps
- Use Register Third-party Account to create an SSO account for respondents, set type as respondent, and pass openid as the unique user identifier
- Call the Get One-time Login Code API for silent account login. The login timing is controlled by the implementer. Please ensure users have already logged into your internal system to prevent data leakage or unauthorized access
- Construct Link with the one-time login code, use action:survey_collect to get the redirect link. Guide users to the link where they will be silently logged in to the survey and directed to the response page
- Receive response data through Data Push, the third_party_user field in the payload data will contain the registered third-party account information
- Or retrieve response data through Get Response Details API, the third_party_user field in the data will contain the registered third-party account information