Ενσωματώσεις
Google Tag ManagerGoogle Tag Manager
δοκιμασμένο πρακτικάΠλατφόρμες και shops

Google Tag Manager | Ενσωματώσεις CookiePilot

Google Tag Manager: Ξεκινήστε από το σημείο φόρτωσης tags: CMS, theme shop ή GTM. Μετά δοκιμάστε product, cart, checkout και φόρμες.

Επισκόπηση

Google Tag Manager: Ξεκινήστε από το σημείο φόρτωσης tags: CMS, theme shop ή GTM. Μετά δοκιμάστε product, cart, checkout και φόρμες.

δοκιμασμένο πρακτικά
Ξεκινήστε από το σημείο φόρτωσης tags: CMS, theme shop ή GTM. Μετά δοκιμάστε product, cart, checkout και φόρμες.
Δεν δηλώνουμε πιστοποιήσεις που δεν υπάρχουν στο προϊόν. Περιγράφουμε Consent Mode v2, dataLayer, gating trackers και πρακτικές δοκιμές.

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.

Source: domains.service.ts and install-method-tabs.tsx
GTM event: cookiepilot_consent_update
Native event: cookiepilot:consent

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.

Google: Consent Mode v2
Non-Google: dataLayer Custom Event
Hardcoded scripts must be moved or gated

Βήματα

  1. 1Ξεκινήστε από το σημείο φόρτωσης tags: CMS, theme shop ή GTM. Μετά δοκιμάστε product, cart, checkout και φόρμες.
  2. 2Δεν δηλώνουμε πιστοποιήσεις που δεν υπάρχουν στο προϊόν. Περιγράφουμε Consent Mode v2, dataLayer, gating trackers και πρακτικές δοκιμές.
  3. 3Checklist δοκιμών: δοκιμασμένο πρακτικά.

Παράδειγμα snippet

<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>

Checklist δοκιμών

  • Συμπεριφορά consent
  • Δεν δηλώνουμε πιστοποιήσεις που δεν υπάρχουν στο προϊόν. Περιγράφουμε Consent Mode v2, dataLayer, gating trackers και πρακτικές δοκιμές.
  • Ξεκινήστε από το σημείο φόρτωσης tags: CMS, theme shop ή GTM. Μετά δοκιμάστε product, cart, checkout και φόρμες.

FAQ

Είναι νομική συμβουλή;

Όχι. Είναι τεχνικός οδηγός. Ειδικές ροές δεδομένων θέλουν έλεγχο από νομικό ή DPO.

Το CookiePilot μπλοκάρει τα πάντα αυτόματα;

Υποστηρίζει autoblocking και Consent Mode. Trackers που φορτώνουν πριν το CMP πρέπει να μπουν πίσω από stub ή GTM Consent Initialization.