There are a few similar articles about this topic but I haven't found the exact answer I'm looking for.
I have a dynamic link in an email that needs to be tracked.
When I preview and run a test send without tracking, the links render correctly with '?utms' etc. When tracking is applied they break and direct to https://click.email.thehomelike.com/utm_source...
Here's an example of the AMPscript I'm using:
%%[SET @apt_alt_1_image = Pre_Platform_Inquiry__c:First_Apartment_Alternative__r:Link__c]%%
<a href="%%=RedirectTo(@apt_alt_1_image)=%%?om_cmpgn=%%emailname_%%&utm_cmpgn=%%utm_cmpgn%%&om_medium=email&utm_term=apt_alt_1_image"
I should note that "Pre_Platform_Inquiry__c:First_Apartment_Alternative__r:Link__c" is a value in the Data Extension that is a complete link already, like "https://app.thehomelike.com/apartment/d49a3c45c2f0fc15ef0f"
There's a paragraph on https://ampscript.guide/redirectto/ that states: "If the RedirectTo function is not used in the href attribute when an attribute or variable is used, the hyperlink will not be resolved with the attribute or variable, for example it will appear as, https://click.email.com/%%=v(@url)=%%." I don't fully understand what this means and if it's related.
Any assistance is appreciated.