You can personalise your links meaning you can insert the value of an Agillic data field as part of the URL.
Using Data Fields in URLs
Inserting the Data Field/Syntax
The syntax for inserting data fields in a link is:
Example: https://{NAME_OF_DATA_FIELD}
Link: https://{STORES.LINK}
Breakdown:
https://{curly bracket open}name of field{curly bracket close}
https://{name of field}
The 'PLACEHOLDER' represents an example text and should be replaced with the relevant values.
Overview of HTML Formats
Data Format | Syntax |
Person Data | <a href="https://{PLACEHOLDER}"> |
One-to-Many | <a href="https://{PLACEHOLDER}"> |
Global Data | <a href="https://{PLACEHOLDER}"> |
Global Data Table Field | <a href="https://{PLACEHOLDER.FIELD}"> |
Data Lookup | <a href="https://{PLACEHOLDER.FIELD}"> |
Unique Lookup | <a href="https://{PLACEHOLDER.FIELD}"> |
Contextual data | <a href="https://{CONTEXTUAL_SCHEME:FIELD}"> |
Contextual OTM data | <a href="https://{CONTEXTUAL_SCHEME:OTM_TABLE.FIELD}"> |
Data Field Contains Entire URL
To make sure your URL is as compatible as possible, we recommend that the value of the data field you wish to insert doesn't include a protocol such as 'https://'. Instead, it's better to insert that as a static text into the editor itself.
Example URL:
support.agillic.com/hc/en-gb/articles/360015757072
In this example, we've inserted a Global Data Table content block and converted a header to be a 'Link to external site'.
In the path we have entered 'https://' followed by the name of the Global Data Table (full stop) and a GDT field containing the link enclosed in curly brackets.
Link URL is inserted as a Global Data field value
Data Field Contains Partial URL
The Data Field doesn't necessarily have to contain the entire URL. You may want only a few values to change depending on recipient data. This can be useful for personalising content on your external site or for tracking purposes with URL parameters.
Example:
https://support.agillic.com/stores?store={FAVOURITE_STORE}
We have different 'Store Pages' on our external site. The URL is mostly identical except for a 'store=' parameter. We want to insert the Person Data value our recipient has in 'FAVOURITE_STORE' as the value of that parameter.
For a recipient with 'CPH' in the Person Data field 'FAVOURITE_STORE', this would become https://support.agillic.com/stores?store=CPH.
Example:
https://support.agillic.com/shop?lang_pref={LANG_PREF}&age_range={AGE_RANGE}&nps={NPS_SCORE}
Our external site supports personalising content based on a few key parameters taken from the URL. They are Language Preference (lang_pref=), Age Range (age_range=), and Net Promoter Score (nps=). We want to insert the data values our recipient has in the corresponding Agillic data field in the above URL.
Comments
Can this article be improved? Please let us know, and we will update the article
0 comments
Please sign in to leave a comment.