Apžvalga
Google Tag Manager: Pradėkite nuo vietos, kur kraunami tagai: CMS, parduotuvės tema arba GTM. Tada testuokite produktą, krepšelį, checkout ir formas.
What the CookiePilot app generates for GTM
Domain → Installation → Google Tag Manager generates a real GTM snippet, not only generic documentation. The backend returns directSnippet, stubSnippet and gtmSnippet; the GTM version combines an inline Consent Mode stub with cookiepilot.js loaded from the CDN for the domain key.
The stub runs synchronously, creates dataLayer/gtag, sets default consent and reads stored cookiepilot_consent for returning visitors before later tags read the state.
Google tags and non-Google tags
Google tags should use Consent Mode v2. GA4 relies on analytics_storage, while Google Ads also needs ad_storage, ad_user_data and ad_personalization.
Meta, TikTok, Hotjar and Klaviyo should usually use the cookiepilot_consent_update dataLayer event or the native cookiepilot:consent event if they are outside GTM.
Žingsniai
- 1Pradėkite nuo vietos, kur kraunami tagai: CMS, parduotuvės tema arba GTM. Tada testuokite produktą, krepšelį, checkout ir formas.
- 2Netvirtiname sertifikacijų, kurių produktas neturi. Aprašome Consent Mode v2, dataLayer, tracker gating ir testus.
- 3Testų sąrašas: praktiškai patikrinta.
Snippet pavyzdys
<script src="https://cdn.cookiepilot.io/stub.js"></script>
<!-- GTM container follows -->
<script src="https://cdn.cookiepilot.io/cookiepilot.js" data-cpkey="YOUR_API_KEY"></script>Testų sąrašas
- Sutikimo elgsena
- Netvirtiname sertifikacijų, kurių produktas neturi. Aprašome Consent Mode v2, dataLayer, tracker gating ir testus.
- Pradėkite nuo vietos, kur kraunami tagai: CMS, parduotuvės tema arba GTM. Tada testuokite produktą, krepšelį, checkout ir formas.
FAQ
Ar tai teisinė konsultacija?
Ne. Tai techninis gidas. Specialius duomenų srautus verta patikrinti teisiškai.
Ar CookiePilot viską blokuoja automatiškai?
Palaikomas autoblocking ir Consent Mode. Trackeriai prieš CMP turi būti perkelti už stub arba GTM Consent Initialization.