I am launching a personalized fax marketing campaign. Under the hood, I'm using SFMC to send a personalized email to an email-to-fax service.
Each email includes a custom QR code - using the approach outlined in this article where the URL itself contains person-specific UTM parameters.
Ideally, I would like to track who visited our website using SFMC's URL wrapping. My question is if someone knows how to construct the wrapped URL before calling the API to generate a QR code.
Proposed pseudo-code below:
%%[
SET @BASE_URL = "https://example.com/?"
SET @SLUG = AttributeValue("url_slug")
SET @FULL_URL = CONCAT(v(@BASE_URL), v(@SLUG))
/* Question: Is this possible and if so how? */
SET @TRACK_URL = RedirectTo(@FULL_URL)
SET @QRCODE = CONCAT('https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=', @TRACK_URL)
]%%
<img src="%%=v(@qrcode)=%%">