Description
[memb_is_trackable_link] is a conditional shortcode that detects whether specific GET parameters are present in the current URL. It is commonly used to personalize content when a contact arrives via a trackable link — for example, from a Keap email campaign, where trackable links automatically include the contactId parameter.
If any of the specified GET fields are found in the URL, the content inside the shortcode is displayed. If none are found, the optional [else_memb_is_trackable_link] content is shown instead. When used without wrapping content (self-closing), it outputs "Yes" or "No" based on the result.
Shortcode Examples
Display personalized content when a contact arrives via a trackable link:
[memb_is_trackable_link fields=contactId]
Welcome! You arrived via a trackable link.
[else_memb_is_trackable_link]
Standard welcome message.
[/memb_is_trackable_link]
Check for multiple tracking parameters — succeeds if any are present:
[memb_is_trackable_link fields=contactId,affiliateId,campaign]
This content is shown when any tracking parameter is detected.
[/memb_is_trackable_link]
Self-closing usage outputs "Yes" or "No":
Tracked: [memb_is_trackable_link fields=contactId]
Shortcode Parameters
capture | Captures the shortcode output and routes it to a variable for later use. (?) |
|---|---|
fields | A comma-separated list of GET parameter names to check for in the URL. The shortcode succeeds if any of the specified fields are present. Parameter names are case-sensitive. (Required) |
txtfmt | A comma-separated list of text processing functions to apply to the output. (?) |
Additional Information
Use with Keap Email Campaigns: When you create a trackable link in Keap and a contact clicks it, the contactId parameter is automatically appended to the destination URL. Use [memb_is_trackable_link fields=contactId] to detect these visits and serve personalized content.
Comparison with [memb_if_get]: [memb_is_trackable_link] only checks for the presence of GET parameters. To compare a parameter's value against a specific value, use [memb_if_get] instead.
Parameter names are case-sensitive: GET parameter names in URLs are matched exactly as specified in the fields attribute. For example, contactId and contactid are treated as different parameters.
Shortcode Attributes
| Conditional | Yes |
|---|---|
| Nestable | No |
| Accepts formatting | Yes |
| Capturable | Yes |