{"id":879,"date":"2026-03-17T16:18:37","date_gmt":"2026-03-17T14:18:37","guid":{"rendered":"https:\/\/www.sabatka.net\/cs\/?page_id=879"},"modified":"2026-03-17T16:48:25","modified_gmt":"2026-03-17T14:48:25","slug":"gtm-template-heureka-cz-and-sk","status":"publish","type":"page","link":"https:\/\/www.sabatka.net\/en\/gtm-template-heureka-cz-and-sk\/","title":{"rendered":"GTM template for Heureka CZ and SK"},"content":{"rendered":"\n<p>Google Tag Manager template for Heureka conversion tracking. Measures conversions for<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/sluzby.heureka.cz\/napoveda\/mereni-konverzi\/\" target=\"_blank\" rel=\"noopener\">Documentation for Heureka.cz<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/sluzby.heureka.sk\/napoveda\/mereni-konverzi\/\" target=\"_blank\" rel=\"noopener\">Documentation for Heureka.sk<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/pavelsabatka\/gtm-heureka\/tree\/main\" target=\"_blank\" rel=\"noopener\">Github Repository<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/pavelsabatka\/gtm-heureka\/blob\/main\/CHANGELOG.md\" data-type=\"link\" data-id=\"https:\/\/github.com\/pavelsabatka\/gtm-heureka\/blob\/main\/CHANGELOG.md\" target=\"_blank\" rel=\"noopener\">Changelog<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/pavelsabatka\/gtm-arukereso\/blob\/main\/README-EN.md\" data-type=\"link\" data-id=\"https:\/\/github.com\/pavelsabatka\/gtm-arukereso\/blob\/main\/README-EN.md\" target=\"_blank\" rel=\"noopener\">GTM template for Arukereso.hu<\/a><\/li>\n<\/ul>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Configuration<a href=\"https:\/\/github.com\/pavelsabatka\/gtm-heureka\/blob\/main\/README-EN.md#configuration\" target=\"_blank\" rel=\"noopener\"><\/a><\/h2>\n\n\n\n<p>For proper measurement you need to implement 2 codes:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>code on the product detail page<\/li>\n\n\n\n<li>conversion code to the thank you page<\/li>\n<\/ol>\n\n\n\n<p>In both codes you need to correctly set the country where you have your Heureka account.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Product detail<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/pavelsabatka\/gtm-heureka\/blob\/main\/README-EN.md#product-detail\" target=\"_blank\" rel=\"noopener\"><\/a><\/p>\n\n\n\n<p>To set it up, just set the country and code type as &#8220;Item detail&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/github.com\/pavelsabatka\/gtm-heureka\/blob\/main\/img\/heureka-item-detail.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" data-src=\"https:\/\/github.com\/pavelsabatka\/gtm-heureka\/raw\/main\/img\/heureka-item-detail.png\" alt=\"Konfigurace GTM \u0161ablony pro Heureka detail produktu\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/a><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Conversion code<a href=\"https:\/\/github.com\/pavelsabatka\/gtm-heureka\/blob\/main\/README-EN.md#conversion-code\" target=\"_blank\" rel=\"noopener\"><\/a><\/h3>\n\n\n\n<p>In the template you need to set<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Key<\/strong>&nbsp;&#8211; key for measuring the store. You can get it in Heureka administration.<\/li>\n\n\n\n<li><strong>Order<\/strong>&nbsp;&#8211; object&nbsp;<a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/ga4\/set-up-ecommerce\" target=\"_blank\" rel=\"noopener\">Transactions in GA4 format<\/a>&nbsp;(or Universal Analytics &#8211;&nbsp;<code>ecommerce.purchase<\/code>).<\/li>\n\n\n\n<li><strong>Order Id<\/strong>&nbsp;&#8211; unique ID of the order<\/li>\n\n\n\n<li><strong>Currency<\/strong>&nbsp;&#8211; three-digit currency code according to ISO 4217. E.g. CZK, EUR, USD<\/li>\n\n\n\n<li><strong>Products<\/strong>&nbsp;&#8211; product field (object). Each product is expected to have attributes&nbsp;<code>id<\/code>&nbsp;(or&nbsp;<code>item_id<\/code>),&nbsp;<code>name<\/code>&nbsp;(or&nbsp;<code>item_name<\/code>),&nbsp;<code>price<\/code>&nbsp;and&nbsp;<code>quantity<\/code>.<\/li>\n\n\n\n<li><strong>Additional Items<\/strong>&nbsp;(optional) &#8211; additional items can be entered in the field that affect the total price of the order. For example, shipping, payment, vouchers or discounts.<\/li>\n<\/ul>\n\n\n\n<p>If a transaction object is inserted, as much data as possible is loaded from it &#8211; order ID, total price, products, additional items.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Examples<a href=\"https:\/\/github.com\/pavelsabatka\/gtm-heureka#p%C5%99%C3%ADklady\" target=\"_blank\" rel=\"noopener\"><\/a><br><a href=\"https:\/\/github.com\/pavelsabatka\/gtm-heureka\/blob\/main\/img\/heureka-purchase-rows.png\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Retrieve from variables<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"890\" height=\"1024\" data-src=\"https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/image-890x1024.png\" alt=\"\" class=\"wp-image-886 lazyload\" data-srcset=\"https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/image-890x1024.png 890w, https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/image-261x300.png 261w, https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/image-768x884.png 768w, https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/image-1334x1536.png 1334w, https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/image.png 1515w\" data-sizes=\"(max-width: 890px) 100vw, 890px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 890px; --smush-placeholder-aspect-ratio: 890\/1024;\" \/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Using the Transaction object Data is&nbsp;<a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/ga4\/set-up-ecommerce\" target=\"_blank\" rel=\"noopener\">in purchase format for GA4<\/a><\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"937\" height=\"1024\" data-src=\"https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/image-1-937x1024.png\" alt=\"\" class=\"wp-image-887 lazyload\" data-srcset=\"https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/image-1-937x1024.png 937w, https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/image-1-275x300.png 275w, https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/image-1-768x839.png 768w, https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/image-1-1406x1536.png 1406w, https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/image-1.png 1509w\" data-sizes=\"(max-width: 937px) 100vw, 937px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 937px; --smush-placeholder-aspect-ratio: 937\/1024;\" \/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Entering additional costs&nbsp;<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"280\" data-src=\"https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/heureka-purchase-additiona-items-1024x280.png\" alt=\"\" class=\"wp-image-889 lazyload\" data-srcset=\"https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/heureka-purchase-additiona-items-1024x280.png 1024w, https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/heureka-purchase-additiona-items-300x82.png 300w, https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/heureka-purchase-additiona-items-768x210.png 768w, https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/heureka-purchase-additiona-items.png 1425w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/280;\" \/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Debugging<\/h2>\n\n\n\n<p>In the GTM Debug Mode, find the event where the Heureka measurement tag is triggered. You can then view all passed parameters in the console. When the data has been sent to Heureka, the&nbsp;<code>success<\/code>&nbsp;status must be given at the end.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"944\" data-src=\"https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/heureka-debug-1024x944.png\" alt=\"\" class=\"wp-image-890 lazyload\" data-srcset=\"https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/heureka-debug-1024x944.png 1024w, https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/heureka-debug-300x277.png 300w, https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/heureka-debug-768x708.png 768w, https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/heureka-debug-1536x1417.png 1536w, https:\/\/www.sabatka.net\/wp-content\/uploads\/2026\/03\/heureka-debug.png 1880w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/944;\" \/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Consent<\/h2>\n\n\n\n<p>The template does not handle consent status. Heureka states&nbsp;<a href=\"https:\/\/sluzby.heureka.cz\/napoveda\/mereni-konverzi\/\" target=\"_blank\" rel=\"noopener\">in the documentation<\/a>&nbsp;that codes should be run without consent &#8211; it follows the consent granted on the Heureka site. However, consult your lawyers for this solution, I am not responsible for its correctness.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Other<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/pavelsabatka\/gtm-heureka#ostatn%C3%AD\" target=\"_blank\" rel=\"noopener\"><\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Disclaimers<a href=\"https:\/\/github.com\/pavelsabatka\/gtm-heureka#z%C5%99eknut%C3%AD-se-zodpov%C4%9Bdnosti\" target=\"_blank\" rel=\"noopener\"><\/a><\/h3>\n\n\n\n<p>I develop the template in my spare time to save you time and work. I am not responsible for its use or any damage caused by its use. The template downloads scripts from a third party (Heureka.cz), according to the documentation published by Heureka.cz. I am not responsible for any shortcomings in terms of GDPR.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Consultation<a href=\"https:\/\/github.com\/pavelsabatka\/gtm-heureka#konzultace\" target=\"_blank\" rel=\"noopener\"><\/a><\/h3>\n\n\n\n<p>If you have problems with deploying the template, you can&nbsp;<a href=\"https:\/\/www.sabatka.net\/kontakt\">contact me<\/a>&nbsp;for a paid consultation.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button scroll_to_subscribe\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/www.sabatka.net\/en\/kontakt\/\">Contact me<\/a><\/div>\n\n\n\n<div class=\"wp-block-button linkedinShare\"><a class=\"wp-block-button__link wp-element-button\">Share on LinkedIN<\/a><\/div>\n<\/div>\n\n\n\n<script>\nwindow.dataLayer = window.dataLayer || [];\nwindow.dataLayer.push({\n  'page': {\n    '_class': 'gtm_templates.detail'\n  }\n});\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Google Tag Manager template for Heureka conversion tracking. Measures conversions for Configuration For proper measurement you need to implement 2 codes: In both codes you need to correctly set the country where you have your Heureka account. Product detail To set it up, just set the country and code type as &#8220;Item detail&#8221;. Conversion code [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-879","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.sabatka.net\/en\/wp-json\/wp\/v2\/pages\/879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sabatka.net\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.sabatka.net\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.sabatka.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sabatka.net\/en\/wp-json\/wp\/v2\/comments?post=879"}],"version-history":[{"count":14,"href":"https:\/\/www.sabatka.net\/en\/wp-json\/wp\/v2\/pages\/879\/revisions"}],"predecessor-version":[{"id":906,"href":"https:\/\/www.sabatka.net\/en\/wp-json\/wp\/v2\/pages\/879\/revisions\/906"}],"wp:attachment":[{"href":"https:\/\/www.sabatka.net\/en\/wp-json\/wp\/v2\/media?parent=879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}