# JSON to base64 for email templates for pixel tracking

**URL:** <https://community.auth0.com/t/json-to-base64-for-email-templates-for-pixel-tracking/72751>\
**Category:** Get Help\
**Created:** [November 8, 2021, 11:19am UTC](https://community.auth0.com/t/json-to-base64-for-email-templates-for-pixel-tracking/72751 "2021-11-08T11:19:04Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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, 10:15pm UTC](https://community.auth0.com/t/json-to-base64-for-email-templates-for-pixel-tracking/72751/3 "2021-11-15T22:15:02Z")

</div>

Hi @pcherevko,

Welcome to the Auth0 Community!

It looks like we are working through a similar question here:

> [@Email template Base64 encode in liquid syntax](https://community.auth0.com/t/email-template-base64-encode-in-liquid-syntax/72745):
>
> 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.

---

_[View the full topic](https://community.auth0.com/t/json-to-base64-for-email-templates-for-pixel-tracking/72751)._
