In this article, you will learn how to perform the advanced assignment of variables in Connectif, a functionality that will allow you to personalize your marketing strategies effectively and precisely. This can be useful for working with extra filters when selecting information to personalize in content.
1. Properties
- The advanced variables in Connectif have the same properties as other variables, along with certain usage specifications that are found at the time of configuration (see section 2.1.).
2. How to use it in Connectif
2.1. Advanced variable configuration
The advanced variable assignment option is found in the section to establish the relationship between a node data and a variable:
By clicking on it, a dialog box will open for configuration.
The configuration options for an advanced variable are Filter and Transform.
-
Filter: filters the list based on a condition. The current filters are:
- Starts with: filters the elements of the text list that start with a specific value (case-sensitive). This is useful if we have, for example, a list of tags. In a case where we have products with the tags offer Summer, offer VIP, and color:red, applying a "starts with" filter "offer", will only show those with the tags offer Summer and offer VIP.
- Ends with: filters the elements of the text list that end with a specific value (case-sensitive). Continuing with the previous example, if we only want VIP products, we will write it here.
- Contains: filters the elements that contain a specific value (case-sensitive). If we only want to show large size products, and that size is indicated by tags, we will indicate the word large here.
-
Transform: transforms the values of the list into another value. Available transformations are:
- Replace: changes one value for another. For example, to stop showing all products with the tag color:red and instead show those with the tag color:black.
- Remove: removes the specified value directly. In this same case, to not show products with any of those color tags.
These assignments are also sequential. This means that, out of all the products that pass the filter of the first assignment, those of the second will be selected. Therefore, if using all five, the fifth assignment will only include products that have passed the previous 4 filters.
2.2 Example of advanced variable assignment
1. In your eCommerce, tag the products to indicate the price to be shown to contacts, depending on the group they belong to. For example, you can indicate it like this: group1=10, group2=5.5, group3=15.
2. Use the "Belongs to segment" node to check if the contact belongs to the VIP contacts segment.
3. Use the "Get products" node and configure it to obtain the list of products you are going to send in the email.
4. Add the "Send email" node, in which you should have added a personalized product block.
5. After configuring the shipment data, associate the variables that will show the products in your email.
6. In the price variable, associate the tag value to configure the desired price.
7. Click on the Assign drop-down menu to access advanced assignment.
8. Configure it under the following options, as seen in the image:
- Filter by the values that start with "group2=" the name of the tag that interests us in this case.
- Transform that same tag, removing the "group2=" part, or the corresponding one, so that only the price remains.
9. Click on Apply.
10. Save and activate your workflow so that the contacts in the corresponding segment see the unit price different from the rest.
Keep learning!
To take full advantage of your Connectif account, we recommend continuing with the following articles:
-
Types of format of variables in Connectif, to determine how the data saved in its corresponding field should be displayed.
- Use case of variables in content, to display personalized products in web content.
- Use case of variables in content, to create a block of personalized products in web content.
- Use case of variables in email, to show a discount percentage only when there is a discount in an email.