Batch methods available in our documentation (for example to collect custom data) are written in the latest available version of JavaScript. However, some Tag Management Systems do not support ECMAScript 6.

Managing compatibility issues

In some cases, Batch JavaScript tags are not supported by default by Tag managers like Google Tag Manager (GTM) and Tag Commander due to the use of arrow functions.

In order to use the preconfigured JavaScript tags in these Tag Managers, you must remove all the arrow functions it contains. This can be done easily by using a tool like Babel.


You can use our pre-configured Babel link to translate Batch tags into a JavaScript version these tools can handle.

Note: Please make sure the 7.15.8 version is checked in the bottom left corner of Babel.

Did this answer your question?