Scenario : Created one cloudpage with smart capture, using cloudpage URL as CTA in email passing email, FN LN as parameters in CloudpagesURL function.
Email works fine in test and preview but URL breaks when email is sent.
I have this on email
%%[
var @email, @givenName, @familyName
set @email = [email]
set @givenName = [givenName]
set @familyName = [familyName]
]%%
This on CTA URL
%%=CloudPagesURL(1509,"email",@email,"givenName",@givenName,"familyName",@familyName)=%%
when previewing the email it works fine but when deploying the email it throws an error
An error has occurred and has been logged by our system. Thank you.
Also, noticed that the cloudpage URL is not generating. Instead of populating the cloudpage URL which is
http://click.info.connect.en/formpage //Dummy
which shows exactly same when email being previewed
the email shows CTA shows below on deployment. UTMs are not bothering but the URL is breaking and I can't get it through.
http://click.info.connect.en/utm_source=sfmc&utm_medium=email&utm_campaign=
along with the error code mentioned above
Cloudpage code:
%%[
var @email, @givenName, @familyName
set @email = RequestParameter('email')
set @givenName = RequestParameter('givenName')
set @familyName = RequestParameter('familyName')
]%%
Further using smart capture fields to populate values captured using below
value="%%=v(@familyName)=%%