← GTM templates
Google Tag Manager template

Encode to Base64

Convert a text string to its Base64 representation.

GTMVariablesBase64

Template technical sheet

Configurable fields
  • Text to encode

What it does

Google Tag Manager variable that receives text and returns its Base64 representation. It is useful when an integration expects that encoding as input. The repository and documentation explain the text field that must be configured.

Code and configuration

The repository includes the template file. Review its documentation, configuration and permissions before adding it to your Google Tag Manager container.

Credits

Alfonso Rodríguez, Txema Sánchez and Brais Calvo.