You can use the Embedded Content element to insert a URL into a survey and display a related image using profile variables. This lets you test custom visual elements according to certain members (for example, personalized promotional coupons, incentives, and so on).
Detailed Steps
Host your images
- Upload your image files to an open content sharing platform or your internal image host.
- Copy the unique URLs of each image.
Create an Excel file to define the image URLs as member data
- In an Excel file, create one column containing with the header "memberid" and another column with the header of the new profile variable you are going to create (for example: "imageurl" or "embeddedimage").
- Paste your image URLs in the second column, corresponding with the member ID of each user in the first column, one per line.
- Save your file in CSV format.
Create your profile variable
- In the Community app, click Community > Profile Variables.
- Click + Profile Variables to create a new profile variable.
The Variable Name should match the new header that you added to the Excel file in the previous step. - From the Type list, select Text.
- Click Save.
Import your CSV file
- From the toolbar in the upper left, click Import.
- Choose the CSV file you have created and click Upload.
Eligible members now have a unique image URL as their profile variable value.
Add the Embedded Content element to your survey
- In the Surveys app, create a survey.
- From the Survey Builder Toolbox, under Page Elements, do one of the following:
- Drag the Embedded Content element to the Table of Contents.
- Click the Embedded Content element.
- Insert a reference to an image in HTML:
<img src="[%Profile Variable Created%]" alt="Alternative text" width="900">
- Click Add a pipe.
- In the Pipe dialog, from the Sources list, select Profile Variables.
- Search for the name of the profile variable and click OK.
Comments
0 comments
Article is closed for comments.