Google Tag Manager

Forum Discussion

anthonyNoel's avatar
anthonyNoel
Collaborator
5 hours ago

How to add link tracking to an Abandoned Cart URL

Hello,

I am using `{{context.${metadata}.checkout_url}}` (from this support article) in an Abandoned Checkout email. 

According to the guidance in this article I should hardcode the base part of the URL and use liquid for the dynamic part. How does this work when for an Abandoned Checkout URL the full string is dynamically generated?

The email editor shows a warning: 

URL {{context.${metadata}.checkout_url | default: 'https://shop.domain.com}} failed to be assigned an LID.

1 Reply

  • The approach I have taken in the past is to provide the cart abandon url as an event property in the even being used to trigger the abandon email.

    What are you expecting your final url to look like and how are you passing the required info such as cart id for the site to show the populate cart?