Personalize field to Shopify button email link

Topic summary

  • Personalization of a Shopify email button link using Liquid variables is failing. The sender expects customer data (first_name, last_name, email) to populate query parameters in the URL.
  • Intended URL: https://www.aaa.com?name={{ data.customer.first_name }}{{ data.customer.last_name }}&email={{ data.customer.email }}&a2=1
  • Actual result: Shopify’s sent email removes the Liquid variables from the link and appends “&syclid=ckrql8fvoevs7395knbg”, leaving only a2=1.
  • Technical context: Liquid is Shopify’s templating language for rendering dynamic data. The added “syclid” appears to be an automatic link parameter, likely for tracking. Code snippets are central to understanding the issue.
  • Core question: How to correctly use Custom Liquid so that personalized parameters (name, email) persist in the final email link.
  • Outcome: No resolution or guidance yet; the discussion is open and seeks a method to generate a personalized link that survives Shopify’s email processing.
Summarized with AI on January 15. AI used: gpt-5.

Hi Community!,

I’m trying to customize the link sent out from the Shopify email using Liquid.

The expected output of the link when the recipient clicks on the button is

https://www.aaa.com?name={{ data.customer.first_name }}{{ data.customer.last_name }}&email={{ data.customer.email }}&a2=1

However, the actual link from the email didn’t replace the variables {{ data.customer.first_name }}{{ data.customer.last_name }} and {{ data.customer.email }}. Instead, it removes those variables and add &syclid back to the link value.

https://www.aaa.com?a2=1&syclid=ckrql8fvoevs7395knbg

How can I use the Custom liquid to generate personalized link to the email recipient?

Thank you for your help!