Email Links Not Loading Due To Length, Could Be Velocity Script Issue?

Diana_Tran
Level 1

Email Links Not Loading Due To Length, Could Be Velocity Script Issue?

Hello,

 

I created a velocity script to append the lead's country to the UTM tracking parameter when a link is clicked, however I believe that is causing our emails to have incredibly long links. The email will render correctly in the preview, but when I do a test send I get the following:

 

Without any velocity scripts or tokens in the url, when a visitor clicks on our links via email it shows up like this in the email and then resolves with the proper tracking parameters and mkt_tok:

 

http://CUSTOMDOMAIN/dc/YaB9AEmQPoKwP0sZ5nSiOMRhuG22OPLhLTuzMBPbWJ0eS92nK8gOIPJfHN70yZDAa1qqf1LWUushBmB1gOLeUoh_2X-d-jaUm0olSLVpfgsZhWSZe1m8IEqZDGGX46yGLwVlXLleA-TU3MBy2BukpWQo0ufcG7o6ATKZ-qibF7A=/SF0I1w0Zw0J0XEF1e00dkBr 

 

But when I add in the tokens to track links into the url, when a visitor clicks on our links via email it shows up like the above, but with an added 8000+ characters and doesn't resolve, and I get directed to a 414 Request URL Too Large:

 

http://CUSTOMDOMAIN/dc/YaB9AEmQPoKwP0sZ5nSiOMRhuG22OPLhLTuzMBPbWJ0eS92nK8gOIPJfHN70yZDAa1qqf1LWUushBmB1gOLeUoh_2X-d-jaUm0olSLVpfgsZhWSZe1m8IEqZDGGX46yGLwVlXLleA-TU3MBy2BukpUczQy8t-NSC9hxUzBr-qg4o8pIDK10f9vWMS1AJaOgDYi2Mqbbpslb8jsZ1KQfS1GLuSexBp6WN-45Hf6TITxH0AmOUxX-qVHfJyeS9piR0OW_RMK-ykz-0FC0YAcrHEJDB9Ylze1cBFNpJyDIreVVNKetU8eQA--PECuAuxBB2AMmRcmtzv6-ZWu27dQck7-jOJFKe-dX-EfxPXsnfuDOpKFW-D7TYJu3sVAMX0zEjOt9Yyp8jUL2xdwD5rIeoT0pO4-chRutUY0kkfFaVyX4ExgK3V5hLrwNRrxI8CB5KDibu1vXgIAW0_aT-MO90MOoi4h9Lvo3LQHATPN53TXC0DZzS8ohoaocowTUNU_hwB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czSN9eiIfvSh9KeBAH20uuV5JhPGJhtkWLol-uLLFtCY_AhizJPlex_sehqScfCJHZjK4dtF9scHjZKZHK-AFJaQcwE7IBG1DNZ9ilNRQfssN3sbnz4WKVrjL9Y5j3Jgj5nTpEYWOT3GJSWDLZeL9gxWAbhdBa73IjNkta8JtRW77fPlCOXPeWxalgA9zPFqdyEKOtphSP_fuyw3fU4Z1asA0XSc1S5gOr4RWyeHCN7QG3fgD-pvkYj49IVi5IxK0euMcXBrtHdBSvoccaofsXIfZ6aYOUNro5YbcyI1kEVoGYVW2VELFqHgAlPd5AM1Go-Ts_DtvSy9elHQ3opWp-7U3EcPRdqs_nd1zqFtFYZei_VkTwkNP9bGPOnTIUVJaesb0GWyDpdKrBjC8ac3KDY7ku9HJzR9Yn_HWjmG0eXEmgPUcikCjXF82CvwCKLl72_SbikgZmLUKC_Kb1AiD7CLO7VqNXfzCqwyAPlQOSz9mft-c37fjyvHeD-fSKPB4eTCl0OkaOLOg8SBdEg_z6dl-JJ3j0IghdBoMyy1IOhlpv-oxX-fWStT0WPA-W2cqXMZxJLh6XR8W8wMtHyCNh_eMZJo64QB8OJKp3NvduRln53-yCZXV4Z7kl-CxZK4JNGgLGGGOKx7b3EbqV3J5KB33vvAKKFUJvpPdRzy-E0SjMvQY6QHJZ7oZ9SV40cVY4fkxJdBzmFkHLVCV9ppAcdNgmA==/HE0011k0XFKZdIJ0weF00Aw 

Does anyone know how to fix this? Thank you for your help! Is there a way to shorten it?

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Email Links Not Loading Due To Length, Could Be Velocity Script Issue?

There's not enough information here.

 

Please show your Velocity code (highlighted as Java using the Syntax Highlighter so it's readable) and your actual branding domain.