You can access any window-scope JavaScript variable from the page in GTM by using a ‘JavaScript variable’.

Here are the steps to set one up for the customer email, stored in the LittledataLayer object.

  1. Create a NEW user-defined variable

  2. Select the JavaScript variable type

  3. Add the field in the Global Variable Name using dot notation, like ‘LittledataLayer.customer.email’