If needed, you can manually update your email code to replace the link code with the latest version, which no longer requires the "click tracking service". This is useful if you have manually changed the email code provided by the app, and don't want to lose those changes.

The following is an advanced guide, only recommended for people with knowledge of Liquid.

Each link in your current emails is slightly different, and so it's not possible to simply find + replace the code. You will need to update each link individually.

1- First, add the following at the very top of your email templates code:

{% capture default_utms %}utm_campaign=order-confirmation-email&utm_medium=email&utm_source=OrderlyEmails{% endcapture %}
{% capture question_mark %}?{% endcapture %}

2- Replace the text order-confirmation-email in the code above, with the email that you are updating. It's important that you do not add any spaces, symbols or other special characters in that text.

3- In the email template code, the easiest way to find each link is to search for:

{% capture oe_uri %}

4- You will find links that look similar to this:

https://{{ shop.domain }}/tools/emails/click/order-confirmation/1/footer-website-link/link?url={% capture oe_uri %}{{shop.url}}{% endcapture %}{{ oe_uri | strip | url_encode }}

In the above, the actual link that the user will end up on, is {{shop.url}} and will be different for each link in the email.

5- In the below code, replace LINKGOESHERE with the actual link, which in this example is {{shop.url}}

{% capture link %}LINKGOESHERE{% endcapture %}{% if link contains shop.domain %}{% assign split_link = link | split: question_mark %}{{ split_link[0] }}?{{ default_utms }}&utm_content=link{% if split_link[1] != blank %}&{{ split_link[1] }}{% endif %}{% else %}{{ link }}{% endif %}

6- In the email, replace the current code (Step 4), with the updated code (Step 5).

In our example, we would have replaced:

https://{{ shop.domain }}/tools/emails/click/order-confirmation/1/footer-website-link/link?url={% capture oe_uri %}{{shop.url}}{% endcapture %}{{ oe_uri | strip | url_encode }}

with:

{% capture link %}{{shop.url}}{% endcapture %}{% if link contains shop.domain %}{% assign split_link = link | split: question_mark %}{{ split_link[0] }}?{{ default_utms }}&utm_content=link{% if split_link[1] != blank %}&{{ split_link[1] }}{% endif %}{% else %}{{ link }}{% endif %}

7- Repeat for each link found in the email.

8- Once done, update the template in the Shopify admin with the new email template code. We recommend sending yourself a test email and checking that the links work correctly.

Did this answer your question?