Skip to main content

New data available in the dataLayer and the checkout process

· One min read
Pavel Husa

New data in the dataLayer​

DataLayer has been extended to provide more information about e-shop itself. You can use this data to identify data origin or use it as pair key.

namedescriptionvalues example
languagecurrent e-shop frontend languagcs, sk, en, de
projectIdE-shop id – integer max. 6 digits long10000, 36550

Note: A language value may remain unchanged if module “Cizí jazyky” is not enabled.

New data in the checkout process​

We enhanced data in the shoptet.checkoutShared object in the first step of the order. Following data has been added:

namedescriptionvalues example
shoptet.checkoutShared.deliveryCountriesArray of countries available in the checkout process{id: 43, code: "CZ", name: "Česká republika", zipCodePattern: "^[1-7]\\d{2}\\s*\\d{2}$", companyIdPattern: "^\\d{8}$", …}
shoptet.checkoutShared.deliveryRegionsArray of countries available a selected country{id: 4, countryId: 43, title: "Hlavní město Praha", shortcut: null}
shoptet.checkoutShared.shippingRequestCode32 characters long random alphanumeric value persistent for the cart lifetime2744w0k38m5xiaqx5ldne977k538bqj8