When you save links as part of an HTML code in an AMPScript variable, such as a paragraph containing a link to a page, you may face challenges in tracking these links.
Salesforce offers a great feature that allows tracking of such links using the “httpgetwrap” inserted right before the URL protocol.
href="httpgetwrap|https://martechnotes.com"
When dealing with AMPScript variables containing links for tracking, it is crucial to use the TreatAsContent() function instead of the v() function. This way, both the link and the tracking will work seamlessly.
%%[
SET @note = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. <a href='httpgetwrap|https://martechnotes.com'>Vestibulum</a> eu lorem vel tortor mattis convallis. Etiam vulputate pharetra varius.</p>
]%%
%%=TreatAsContent(@note)=%%
GOOD TO KNOW
One important aspect to take into account when utilizing the “httpgetwrap” feature is its limitation in tracking only the first 100 unique URLs in the send. If you combine the prefix with Parameter Manager, it’s highly improbable that the click activity on these prefixed links will be fully tracked.
There is no longer a requirement to contact support for enabling this feature, as was the case in the past. Nowadays, the feature is automatically enabled on business units.
There is no longer a requirement to contact support for enabling this feature, as was the case in the past. Nowadays, the feature is automatically enabled on business units.
I specialize in solving problems, automating processes, and driving innovation through major marketing automation platforms, particularly Salesforce Marketing Cloud and Adobe Campaign.
Not too long ago, Google reCAPTCHA officially became part of Google Cloud. If you’ve been using the older reCAPTCHA implementation, you might have noticed that it suddenly stopped working — without much warning. The migration introduced new endpoints, API keys ...
In today’s fast-paced digital world, businesses are constantly seeking innovative ways to boost their marketing efforts and enhance efficiency. As the owner of a marketing automation agency with over a decade of experience working for IT corporations—eight of which were ...
Data extension column names with _dat, _call, _from, _join suffix will fail to validate, due to using old style JOIN The fix is really easy you only need to wrap the column name like [test_from] and the problem with validation ...
To effectively leverage any advanced marketing automation platform, understanding its personalization language is essential. In Salesforce Marketing Cloud, AMPScript serves as the go-to language for email personalization and as a backend tool for cloud pages. This scripting language allows marketers ...
In Salesforce Marketing Cloud (SFMC), Cloud Pages are commonly used for developing and testing scripts. But once these pages are published, they become accessible to anyone, which can pose a security threat if they contain sensitive info like API tokens ...
Recently, I came across a really interesting issue while sending a proof in Salesforce Marketing Cloud. We use an AMPScript variable as the subject line, which is passed from a personalization script. When choosing the subject line prefix “[test email]”, ...
I’m sure there was, or will be, a time when you need to find the folder ID where your data extensions are saved. This is mostly used in SSJS when creating or modifying data extensions. You may be wondering how ...
It wasn’t my first time working with marketing campaign builders that go beyond simple actions and conditions, so Journey Builder didn’t feel like some shiny new thing I had never seen before. I had already worked extensively with Adobe Campaign, ...