Title: ZDAnalytics Connector (GA4 + GTM)
Author: ZDAPPS
Published: <strong>13 januari 2026</strong>
Last modified: 14 januari 2026

---

Sök tillägg

![](https://ps.w.org/zdanalytics-connector/assets/banner-772x250.jpg?rev=3439007)

![](https://ps.w.org/zdanalytics-connector/assets/icon-256x256.png?rev=3439007)

# ZDAnalytics Connector (GA4 + GTM)

 Av [ZDAPPS](https://profiles.wordpress.org/zdapps/)

[Ladda ner](https://downloads.wordpress.org/plugin/zdanalytics-connector.1.8.10.zip)

 * [Detaljer](https://sv.wordpress.org/plugins/zdanalytics-connector/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/zdanalytics-connector/#reviews)
 *  [Installation](https://sv.wordpress.org/plugins/zdanalytics-connector/#installation)
 * [Utveckling](https://sv.wordpress.org/plugins/zdanalytics-connector/#developers)

 [Support](https://wordpress.org/support/plugin/zdanalytics-connector/)

## Beskrivning

ZDAnalytics Connector helps you connect **Google Analytics 4 (GA4)** and/or **Google
Tag Manager (GTM)** to your WordPress site without editing theme files.

**Key features**
 * Simple settings page (Settings  ZDAnalytics Connector) * Supports
GA4 Measurement ID (G-XXXXXXXXXX) and GTM Container ID (GTM-XXXXXXX) * Consent-friendly:
when enabled, the plugin waits for consent before loading Google scripts * Cache-
friendly: consent checking happens in the browser, so it works with full-page caches(
LiteSpeed, server cache, CDN, etc.) * Optional: do not load tracking for logged-
in users

### External services

This plugin connects to external services provided by Google:

1) **Google Analytics 4**
 * What it is used for: Website analytics/measurement.*
What data is sent: When loaded, Google scripts may collect usage data (e.g., page
views, events, device/browser information) as configured in your Google Analytics
property. * When it is sent: When tracking is enabled and (if configured) the user
has consented. * Terms: https://policies.google.com/terms * Privacy: https://policies.
google.com/privacy

2) **Google Tag Manager**
 * What it is used for: Tag management (loading additional
tags you configure in GTM). * What data is sent: Data collection depends on the 
tags you configure inside your GTM container. * When it is sent: When tracking is
enabled and (if configured) the user has consented. * Terms: https://policies.google.
com/terms * Privacy: https://policies.google.com/privacy

## Skärmdumpar

 * [[
 * [[
 * [[

## Installation

 1. Upload the plugin zip and activate it.
 2. Go to **Settings  ZDAnalytics Connector**.
 3. Enter your GA4 Measurement ID and/or GTM Container ID.
 4. (Optional) Enable consent requirement and set the consent cookie name used by your
    cookie banner plugin.

## Vanliga frågor

### Does this plugin track users by default?

No. You can disable tracking entirely using **Enable tracking (opt-in)**. If **Require
consent before tracking** is enabled, the plugin will not load Google scripts until
consent is detected.

### How does consent detection work?

If **Require consent before tracking** is enabled, the plugin checks the configured**
Consent cookie name** (default: `cookie_notice_accepted`) for a value such as `true`,`
1`, `yes`, or `accepted`.
 If the cookie name is empty, developers can use the `
zdac_user_has_consented` filter to integrate with custom consent logic.

### Does this plugin provide a cookie banner?

No. Use any cookie/consent plugin you prefer and configure the cookie name in this
plugin.

### I use page caching (LiteSpeed/hosting cache/CDN). Will this work?

Yes. This plugin uses a small local loader script that checks consent in the browser
and only then loads Google scripts, so it is compatible with full-page caching.

### Should I use both GA4 and GTM at the same time?

You can, but avoid double-counting: if you load GA4 via GTM, you usually do not 
need to also set the GA4 Measurement ID in this plugin.

## Recensioner

![](https://secure.gravatar.com/avatar/7e4cc8348b8aff3bcbec01b890bc93df8e1cd05203375aa5da01a1ad1c437254?
s=60&d=retro&r=g)

### 󠀁[Excelente plugin para usar GA4](https://wordpress.org/support/topic/excelente-plugin-para-usar-ga4/)󠁿

 [Hugo Nieto](https://profiles.wordpress.org/hnietos/) 19 januari 2026

Practico y simple, tiene dos pestañas, una básico y avanzada, muy fácil de usar.

 [ Läs 1 betyg ](https://wordpress.org/support/plugin/zdanalytics-connector/reviews/)

## Bidragsgivare och utvecklare

”ZDAnalytics Connector (GA4 + GTM)” är programvara med öppen källkod. Följande personer
har bidragit till detta tillägg.

Bidragande personer

 *   [ ZDAPPS ](https://profiles.wordpress.org/zdapps/)

[Översätt ”ZDAnalytics Connector (GA4 + GTM)” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/zdanalytics-connector)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/zdanalytics-connector/),
kika på [SVN-filförvaret](https://plugins.svn.wordpress.org/zdanalytics-connector/)
eller prenumerera på [utvecklarloggen](https://plugins.trac.wordpress.org/log/zdanalytics-connector/)
via [RSS](https://plugins.trac.wordpress.org/log/zdanalytics-connector/?limit=100&mode=stop_on_copy&format=rss).

## Ändringslogg

#### 1.8.10

 * Improve admin field labels and inline help text.
 * Improve plugin metadata for better discoverability.

#### 1.8.9

 * Added Basic/Advanced settings tabs and improved automatic consent detection.
 * Bundled JS assets (admin + consent loader) in the plugin package.

#### 1.8.8

 * Added consent storage source (Cookie / Local Storage) and consent accepted values
   list.
 * Added admin helper to detect cookies/localStorage keys from the current browser.

#### 1.8.7.1

 * Hotfix: fixed a PHP syntax error that could cause a fatal error on activation.

#### 1.8.7

 * Added cache-friendly, consent-aware loader that injects GA4/GTM only after consent
   is detected (works with full-page caches like LiteSpeed).
 * Added settings: Enable tracking (opt-in) and Consent cookie name (`cookie_notice_accepted`
   by default).
 * Improved consent detection (cookie-based with filter fallback) and prevented 
   noscript GTM output when consent is required.

#### 1.8.5

 * Improved sanitization (register_setting with sanitize_callback) and consent-first
   tracking behavior.
 * Enqueued scripts properly (no direct echo of script tags).

## Meta

 *  Version **1.8.10**
 *  Senast uppdaterat **3 månader sedan**
 *  Aktiva installationer **Färre än 10**
 *  WordPress-version ** 5.5 eller senare **
 *  Testat upp till **6.9.4**
 *  PHP-version ** 7.4 eller senare **
 *  Språk
 * [English (US)](https://wordpress.org/plugins/zdanalytics-connector/)
 * Etiketter
 * [cookie consent](https://sv.wordpress.org/plugins/tags/cookie-consent/)[ga4](https://sv.wordpress.org/plugins/tags/ga4/)
   [google analytics](https://sv.wordpress.org/plugins/tags/google-analytics/)[google tag manager](https://sv.wordpress.org/plugins/tags/google-tag-manager/)
   [gtm](https://sv.wordpress.org/plugins/tags/gtm/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/zdanalytics-connector/advanced/)

## Betyg

 5 av 5 stjärnor.

 *  [  1 5-stjärnig recension     ](https://wordpress.org/support/plugin/zdanalytics-connector/reviews/?filter=5)
 *  [  0 4-stjärniga recensioner     ](https://wordpress.org/support/plugin/zdanalytics-connector/reviews/?filter=4)
 *  [  0 3-stjärniga recensioner     ](https://wordpress.org/support/plugin/zdanalytics-connector/reviews/?filter=3)
 *  [  0 2-stjärniga recensioner     ](https://wordpress.org/support/plugin/zdanalytics-connector/reviews/?filter=2)
 *  [  0 1-stjärniga recensioner     ](https://wordpress.org/support/plugin/zdanalytics-connector/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/zdanalytics-connector/reviews/#new-post)

[Se alla recensioner](https://wordpress.org/support/plugin/zdanalytics-connector/reviews/)

## Bidragande personer

 *   [ ZDAPPS ](https://profiles.wordpress.org/zdapps/)

## Support

Har du något att säga? Behöver du hjälp?

 [Visa supportforum](https://wordpress.org/support/plugin/zdanalytics-connector/)