GTM Kit – Google Tag Manager integration

Açıklama

GTM Kit puts the Google Tag Manager container code on your website so that you don’t need to touch any code. It also pushes data from WooCommerce, Easy Digital Downloads (EDD) and Contact Form 7 to the data layer for use with for Google Analytics 4, Facebook and other GTM tags.

The goal of GTM Kit is to provide a flexible tool for generating the data layer for Google Tag Manager. It is easy to use and doesn’t require any coding, but it allows developers to customize the plugin as needed.

Google Analytics 4 ile izlenen e-ticaret etkinlikleri

The following GA4 events are automatically included in the dataLayer:

WooCommerce

  • view_item_list
  • select_item
  • view_item
  • add_to_wishlist
  • add_to_cart
  • view_cart
  • remove_from_cart
  • begin_checkout
  • add_shipping_info
  • add_payment_info
  • purchase

Easy Digital Downloads

  • view_item
  • add_to_cart
  • begin_checkout
  • purchase

Esnek kapsayıcı uygulaması

Depending on how you use Google Tag Manager you can delay the loading of the container script until the browser is idle. This may be relevant to you be if are focusing on pagespeed.

You may enter a custom domain name if you are using a custom server side GTM (sGTM) container for tracking. It’s also possible to specify a custom loader. GTM Kit has full support for Stape server GTM hosting.

Yazı Verisi

You may specify which post data elements you wish to include in the dataLayer for use in Google Tag Manager.
– Post type: include the type of the current post or archive page.
– Page type: include a defined page type. I.e. post, page, product, category, cart, checkout etc.
– Categories: include the categories of the current post or archive page.
– Tags: include the tags of the current post or archive page.
– Post title: include the post title of the current post.
– Post ID: include the Post ID of the current post.
– Post date: include the post date.
– Post author name: include the post author name.
– Post author ID: include the post author ID.

Ekran Görüntüleri

  • Google Etiket Yöneticisi kapsayıcısı
  • Google Etiket Yöneticisi kapsayıcı kodu
  • GTM Sunucu Tarafı
  • WooCommerce Entegrasyonu

Yükleme

  1. GTM Kit’i WordPress.org eklenti deposu aracılığıyla veya dosyaları sunucunuza yükleyerek kurun.
  2. Eklentiyi WordPress’teki ‘Eklentiler’ menüsünden etkinleştirin
  3. GTM Kapsayıcı Kimliğinizi (Container ID) girin ve “Değişiklikleri Kaydet”i tıklayın.

SSS

GTM Kapsayıcı Kimliğini (Container ID) nereden alabilirim?

Google Etiket Yöneticisi‘nde bir hesap ve kapsayıcı oluşturup oradan alabilirsiniz.

Google Analytics 4 (GA4) destekleniyor mu?

Evet! Google Analytics 4’ün bütün özelliklerini desteklemek için çalışıyoruz ve Analytics 4’ün gelecekteki tüm özelliklerini uygulayacağız.

Bu eklenti önbellek eklentilerini destekliyor mu?

Yes! Pagespeed is one of our main focus points, and we strive to make the plugin compatible with full page caching.

İncelemeler

11 Temmuz 2023
We are using the GTM Kit plugin integrated with the Easy Digital Downloads plugin, and it's been working very well for us! Recently, we faced an issue with the GA4 reports where some purchase events were missing. We immediately reached out to the support team, and they provided a quick fix. Now it is working fine with EDD. Thank you!!
19 Nisan 2023
That plugin was exactly what we've been looking for and testing a couple of paid extensions. This one is super easy to configure and gives the data we exactly needed. EDD integration is a blast!
12 Ocak 2023
This plugin was made for Google Analytics 4 and is not just a compatability extion to GA3. It's supports all events relevant to WooCommerce without having to pay for a pro version.
7 incelemeyi oku

Katkıda Bulunanlar ve Geliştiriciler

“GTM Kit – Google Tag Manager integration” açık kaynaklı yazılımdır. Aşağıdaki kişiler bu eklentiye katkıda bulunmuşlardır.

Katkıda bulunanlar

“GTM Kit – Google Tag Manager integration” 2 dile çevrildi. Katkıda bulundukları için çevirmenlere teşekkürler.

“GTM Kit – Google Tag Manager integration” eklentisini dilinize çevirin.

Geliştirmeyle ilgilenir misiniz?

Kodu görüntüle, SVN deposuna göz at veya RSS ile geliştirme günlüğüne abone ol.

Değişiklik Kaydı

1.13.1

Bugfixes:
* Fixes a bug where a REST request could fail because the function is_plugin_active() is not ready.

Other:
* Tested up to WooCommerce 8.1

1.13

Enhancements:
* Add option to set Google Consent Mode default settings if a Consent Management Platform is not used.
* Added support for import of more plugin configurations.
* Prevent Consent Management Platforms from blocking GTM Kit and the Google Tag Manager container. This can be overridden with the filter hook ‘gtmkit_header_script_attributes’.

Bugfixes:
* Fix a bug that in some cases would cause a namespace problem.

Other:
* Declare compatibility with the WooCommerce Cart and Checkout blocks.
* Comply with WordPress Coding Standards.

1.12.2

Geliştirmeler:

Bugfixes:
* Fixes an error when no payment gateways are defined.
* Fixes empty items in begin_checkout event.

Other:
* Removes About GTM Kit section from help page

1.12.1

Bugfixes:
* A custom datalayer name was not registered correct.

1.12

Enhancements:
* Improved support for the WooCommerce cart and checkout blocks
* Added the class input-needed to the block list of the add_to_cart event
* Added option to import plugin settings from GTM4WP in the setup wizard
* Improved the setup wizard with option to enable essential settings

Other:
* Use global object for script data and settings
* Require WooCommerce 7.1
* Require WordPress 6.1
* Tested up to WordPress 6.3
* Tested up to WooCommerce 8.0

1.11.1

Bugfixes:
* The ecommerce object was not cleared on some events

  • Cast transaction_id to string. According to the GA4 documentation transaction_id should be a string as it allows numbers, letters, and special characters like dashes or spaces.

1.11

Geliştirmeler:

  • Added Just-The-Container mode for those with simple needs. This option reduces the functionality to just the GTM container code.
  • Added help section with GTM container import files

Diğer:

  • Removed option to delay the container script by 2 seconds.
  • WooCommerce tested up to: 7.9
  • Added PHPStan to ensure code quality
  • Refactored code and improved code quality
  • All PHP classes are marked ‘final’
  • The Gulp build tool has been removed and we are now using NPM as a build tool

1.10

Geliştirmeler:

  • Added setup wizard for onboarding new users

Diğer:

  • Updated dependencies
  • Implemented Tailwind

1.9

Geliştirmeler:

  • Added option to include the customer data in the data layer on the “purchase” event.
  • Added the constant ‘GTMKIT_WC_DEBUG_TRACK_PURCHASE’, which allows you to force tracking of purchase event on every page refresh for debugging.

Hata düzeltmeleri:

  • Fixed a bug where Easy Digital Download Pro was not detected.

Diğer:

  • Changed required capability from ‘install_plugins’ to ‘manage_options’.
  • WooCommerce tested up to: 7.6

1.8

Geliştirmeler:

  • Added ‘add_to_wishlist’ event when used together with the most popular wishlist plugins ‘YITH WooCommerce Wishlist’ and ‘TI WooCommerce Wishlist’.
  • Improve compatibility with other plugins and customisations.
  • Added item_variant to the items element in the datalayer.
  • Added ‘coupon’ to the datalayer.
  • Added option to log helpful messages and warnings to the browser log.

Hata düzeltmeleri:

  • Fixed a bug where inline styles would be stripped from the HTML.
  • Fixed af bug where items in the ‘view_cart’ event had double brackets.

1.7.1

Hata düzeltmeleri:

  • The ‘begin_checkout’ event did not contain data layer values for ‘ecommerce.currency’ and ‘ecommerce.value’

1.7

Geliştirmeler:

  • Added support for the new WooCommerce checkout block
  • Added meta box on posts where you can enter the page type to be included in the data layer.
  • Added the filter gtmkit_admin_capability, which allows you to set the capability required to manage the plugin options.
  • Added option to share anonymous data with the development team to help improve GTM Kit.

Hata düzeltmeleri:

  • Type cast the item value to prevent string values in the data layer
  • On installations of Easy Digital Download where the Confirmation Page was not configured the Purchase event would not fire.

Diğer:

  • Minor styling of the dashboard
  • Updated the tutorial section
  • Improved some help texts
  • Added missing translation strings
  • WordPress tested up to 6.2
  • WooCommerce tested up to: 7.5.

1.6.2

Hata düzeltmeleri:

  • Backwards compatibility. Trailing comma in function calls is only available since PHP 7.3.

1.6.1

Geliştirmeler:

  • Added declaration of plugin compatibility with WooCommerce High-Performance Order Storage.

Diğer:

  • WooCommerce tested up to: 7.4

1.6

Geliştirmeler:

  • Added support Easy Digital Downloads for the events: view_item, add_to_cart, begin_checkout, purchase
  • Added support for primary product category in Rank Math SEO

Diğer:

  • WooCommerce tested up to: 7.3
  • Refactored integrations
  • Added missing translation string

1.5.3

Geliştirmeler:

  • Align text domain with GlotPress making the plugin compatible with translations from WordPress.org

1.5.2

Geliştirmeler:

  • Added better help texts.
  • Fixed typos.

1.5.1

Geliştirmeler:

  • Added better support for the Google Ads remarketing tag.

1.5

Geliştirmeler:

  • Add option til select the Google business vertical value to include in all items. This is used for Google Ads remarketing.
  • Add option to add a prefix to the item IDs.

Hata düzeltmeleri:

  • Fix wrong currency value in the Data Layer.

1.4.5

Geliştirmeler:

  • Varsayılan olarak, Contact Form 7 entegrasyon scriptleri, yalnızca Contact Form 7 script dosyalarının bulunduğu sayfalara yüklenecek şekilde ayarlandı.
  • Öğreticiler ve yardım metinleri iyileştirildi

Hata düzeltmeleri:

  • Hem WooCommerce hem de CF7 entegrasyonu etkinken datalayer_name çakışması düzeltildi.

Diğer:

  • WooCommerce 7.1’e kadar test edildi

1.4.4

Geliştirmeler:

  • Kontrol paneline öğreticiler bölümü eklendi.

Hata düzeltmeleri:

  • CF7 entegrasyonunun açıklaması düzeltildi.

1.4.3

Hata düzeltmeleri:

  • ‘items’ öğesi, ödeme sayfasında sadece 1 tane gösteriyordu.

1.4

Geliştirmeler:

  • Veri katmanına kullanıcı verileri eklemek için seçenekler eklendi (logged in, user ID, user role).
  • View_item etkinliğini hem temel hem de seçili varyasyonda göstermeye çalışmak yerine, değişken ürünlerdeki view_item olayını temel ürünle sınırlama seçeneği eklendi.
  • Kapsayıcı paneline düzenleme düğmesi eklendi

Hata düzeltmeleri:

  • add_to_cart’tan önceki e-ticaret nesnesini temizlendi.
  • CF7 entegrasyonu için “varsayılan” seçeneği ayarlandı

Diğer:

  • Yardım bölümüne destek bağlantıları eklendi

1.3.3

Hata düzeltmeleri:

  • CF7’de özel datalayer adı düzeltildi.

Diğer:

  • WordPress 6.1’e kadar test edildi
  • WooCommerce 7.0’a kadar test edildi.

1.3.1

Hata düzeltmeleri:

  • Kapsayıcı özel alan adı, noscript kapsayıcısında kullanılmaz.

1.3

Geliştirmeler:

  • WooCommerce Yüksek Performanslı Sipariş Depolama ile uyumluluk eklendi.
  • Google Etiket Yöneticisi sunucusu için DNS Prefetch eklendi.
  • Contact Form 7 Entegrasyonu Eklendi.
  • Yeni yönetici paneli.
  • Yeni yönetici gezinme.

Diğer:

  • Temizlenmiş ve biçimlendirilmiş kod.

1.2.1

Hata düzeltmeleri:

  • Gönderi türü dahil edilmediği zaman pageType’ın dahil edilmediği bir hata düzeltildi.

1.2

Geliştirmeler:

  • Tanımlanan sayfa türünü dahil etme seçeneği. Örneğin: Yazı, sayfa, ürün, kategori, alışveriş sepeti, ödeme vb.

1.1

Geliştirmeler:

  • Ürün, kategori, etiket ve ürün özellikleri kalıcı bağlantı yapısını veri katmanına dahil etme seçeneği.
  • Veri Katmanı’nda (Datalayer) sepet, ödeme, sipariş ve hesabım sayfasının bağlantılarını dahil etme seçeneği.

Hata düzeltmeleri:

  • Agresif bir wp_kses filtresinin, ürün kategorisi sayfalarında sepete ekleme takibini engellemesine neden olan bir hata düzeltildi.

Diğer:

  • WooCommerce etkin değilse WooCommerce ayarlarını devre dışı bırakın seçeneği.
  • Logo güncellendi.

1.0

  • İlk sürüm