Toolvito

Calculates on this device. File exports run online.

Analytics Data Layer Viewer

Paste your data layer — the JSON that window.dataLayer holds, JSON Lines or page code with dataLayer.push() calls — and see each push with its event, every value with its path and type, and the data model that Google Tag Manager builds from the pushes, after any push you choose. Or compare two data layers to see which events and keys one has and the other lacks, and which values changed type.

Enter your values

Every push and value, and the GTM data model after any push.

Your values

In the browser console: copy(JSON.stringify(dataLayer)), then paste. JSON Lines and page code with dataLayer.push() calls are read too.

Leave empty for the model after the last push.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose the button below them.

Flatten large captures

Flatten large captures

Choose up to 20 data layer files (a JSON array of pushes or JSON Lines) of up to 100 MB each, such as the data layers recorded by a crawler. You get every value of every push in one CSV file and the data model after the last push of each file as JSON.

Or drop files here. JSON, JSONL, NDJSON or TXT, up to 20 files, 100 MB each at most.

    The data layers above are read in your browser. When you use this box, the files you choose are sent to the Toolvito server. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

    How to use it

    1. In your browser’s console type copy(JSON.stringify(dataLayer)) and paste the result here.
    2. Press Show the data layer, then read the pushes, the values and the data model; type a push number to see the model at that moment.
    3. Choose Compare two data layers and paste a second one, such as the same page after a release.

    How the data model is built

    • Google Tag Manager merges each pushed object into one data model (its data-layer-helper library): objects key by key and arrays item by item. Values that are not objects or arrays replace the old value.
    • Because arrays merge item by item, a push with fewer items leaves old items behind; this is why Google asks for { ecommerce: null } before each ecommerce push.
    • Pushes that are not objects, such as command arrays ['set', ...], do not change the model here.

    Related tools