# Email template Base64 encode in liquid syntax

**URL:** <https://community.auth0.com/t/email-template-base64-encode-in-liquid-syntax/72745>\
**Category:** Get Help\
**Tags:** liquid-syntax, email-template\
**Created:** [November 8, 2021, 10:25am UTC](https://community.auth0.com/t/email-template-base64-encode-in-liquid-syntax/72745 "2021-11-08T10:25:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![npatel](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/npatel/32/15222_2.png) [@npatel](https://community.auth0.com/u/npatel)\
**Post date:** [November 8, 2021, 10:25am UTC](https://community.auth0.com/t/email-template-base64-encode-in-liquid-syntax/72745/1 "2021-11-08T10:25:48Z")

</div>

Hi,

[Base64 Decode & Encode Filters by dinsley · Pull Request #1450 · Shopify/liquid · GitHub](https://github.com/Shopify/liquid/pull/1450/files) shows that the liquid syntax now support  
`{{ 'some data' | base64_encode }}`

But it does not work in auth0 email templates. Do you know what version is used by Auth0?

Some background on this requirement:  
We want to add segment pixel tracking in our emails. [Tracking Pixel API | Segment Documentation](https://segment.com/docs/connections/sources/catalog/libraries/server/pixel-tracking-api/) . For that we need to send a base64 of some user metadata.

Thanks.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 15, 2021, 9:48pm UTC](https://community.auth0.com/t/email-template-base64-encode-in-liquid-syntax/72745/3 "2021-11-15T21:48:13Z")

</div>

Hi @npatel,

I reached out to the team on this and will update here when I have a response.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 16, 2021, 9:37pm UTC](https://community.auth0.com/t/email-template-base64-encode-in-liquid-syntax/72745/4 "2021-11-16T21:37:33Z")

</div>

Hi again.

We are using a version of liquidJS, which does not yet support base64\_encode, as far as I can tell.

> **[Class: Liquid | LiquidJS](https://liquidjs.com/api/classes/liquid_.liquid.html)**
>
> LiquidJS is a simple, expressive and safe Shopify / Github Pages compatible template engine in pure JavaScript.

---

<div class="post-metadata">

**Author:** ![npatel](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/npatel/32/15222_2.png) [@npatel](https://community.auth0.com/u/npatel)\
**Post date:** [November 19, 2021, 7:55am UTC](https://community.auth0.com/t/email-template-base64-encode-in-liquid-syntax/72745/5 "2021-11-19T07:55:09Z")

</div>

Ok. Will try to find an alternative to know when an email was opened.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 4, 2021, 7:55am UTC](https://community.auth0.com/t/email-template-base64-encode-in-liquid-syntax/72745/6 "2021-12-04T07:55:59Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
