Skip to content
BonicBD
Tools

DataLayer Variable Finder

Search the event names and variable keys BonicBD documents, and get the exact path to paste into your GTM variable definition.

Type an event name, a variable name, or part of one. The list is the set BonicBD documents.
Matching variables 0

Type at least two characters to search.

    How this tool works

    Runs where you are

    The page is static. Your input is processed by a script in your browser, and nothing is sent to BonicBD or stored on a server.

    Shows its inputs

    Every value the tool outputs is one you typed, or one BonicBD documents. If a default is applied, the tool names it.

    No account needed

    There is no sign-up, no email capture, and no rate limit tied to a plan. Open it, use it, close the tab.

    Why the path matters more than the value

    A tag manager variable points at a path into the dataLayer, not at a value. If the path is right, the variable keeps working when the value changes. If the path is wrong, it returns undefined and the tag fires with an empty field — which is worse than not firing, because it counts as an event with no data.

    So the question is never "what is the value", it is "which object did that value arrive on, and under which key".

    Dot notation versus bracket notation

    Dot notation works until a key contains a dot or a space, and then it silently reads the wrong level. Any key that is not a plain identifier needs bracket notation with quotes.

    An ecommerce item lives inside an array, so the path needs an index: ecommerce.items.0.item_id. Reading items.item_id returns nothing, because the array has no such property.

    The path that looks right and is not

    Many themes push a product object on page load and again on add-to-cart. A variable created against the first shape stops resolving on the second page type. Check the path against the event that actually fires, not against the page you happened to inspect.

    Reading the paths this tool returns

    Path shapeWhere it comes fromWatch for
    eventEvery dataLayer push carries oneReading it as a variable when you meant a constant
    ecommerce.items.0.item_idGA4 ecommerce arrayNo index means no match — arrays need the number
    user_data.emServer-side enrichment objectOnly present after the enrichment step runs
    "payment.method"A key containing a dotDot notation reads it as nested and returns nothing

    Questions about this tool

    Three usual causes: the path is wrong, the event that carries the value has not fired yet, or the variable reads a shape that only exists on some page types.

    Usually no. A trigger matches on the event name directly, and a separate variable for it just adds a thing to keep in sync.

    Add the index to the path — ecommerce.items.0.item_id. Without the number the array has no such property and the variable resolves to nothing.

    It documents the paths BonicBD and GA4 use. A custom theme object with your own key names has to be read from your own page source.

    Reading the result is step one

    If the check turned up something you want to fix, the setup guide is the path from DNS to a verified event — or start a trial and watch a real event land on your own subdomain.