Git Product home page Git Product logo

oxid-module-gtm's Introduction

[vt] Google Tag Manager

Google Tag Manager integration for OXID eShop v6.2 und höher
module version 0.5.0 ( 2021-12-10 )

Installation

  • composer require vanilla-thunder/oxid-module-gtm --no-update
  • Modul aktivieren und Moduleinstellungen konfigurieren

Tag Manager konfigurieren:

Google Analytics 4 Einrichtung

GA4 Events / Customizing

für alle implementierten GA4 Events existieren Templates unter source/modules/GoogleTagManager/Application/views/ga4/, dabei entspricht der Dateiname dem Eventnamen in GA4. Die Einbindung dieser Event-Templates erfolgt über TPL-Blöcke unter source/modules/GoogleTagManager/Application/views/blocks/.

Universal Analytics Events

"EE-Trigger" für Ecomemrce-Tags (Beispiel für Google Tag Manager):

  • Triggertyp: Benutzerdefiniertes Ereignis
  • Ereignisname: ee\..*
  • Übereinstimmung mit regulärem Ausdruck verwenden
  • Diesen Trigger auslösen bei: Alle benutzerdefinierten Ereignisse

"EE-Tag" für Google Analytics Enhanced Ecommerce:

  • Tag-Typ: Google Analytics - Universal Analytics
  • Tracking-Typ: Ereignis
  • Aktion: {{Event}}
  • Label: {{Event Label}}
  • Trigger : EE-Trigger

Verfügbare Datalayer Variablen

Für die einfachste Übersicht der enthaltenen Daten empfehle ich den Vorschau-Modus vom Google Tag Manager.

Bei jedem Seitenaufruf wird die Datenschicht mit einigen wenigen Infos erstellt, die man zum reinen Erfassen der Seitenaufrufe benötigt:

  • page.type - Seitentyp: default / cms / product / listing / checkout (an google analytics angelehnt)
  • page.title - Seitentitel (außer Startseite, sie hat keinen Titel. Danke OXID...)
  • page.cl - OXID Controller Klasse (start, search, etc)
  • userid - oxID vom Benutzer bzw false falls nicht eingeloggt
  • sessionid - session iD

Alle für Ecommerce Tracking releavanten Daten werden mit speziellen Ecommerce Events in die Datenschicht eingefügt. Hier ist ein Beispiel für die Einrichtung von Enhanced Ecomemrce Tracking über Google Tag Manager:

LICENSE AGREEMENT

[vt] google-tag-manager
Copyright (C) 2021 Marat Bedoev
info: [email protected] oder so /** @todo: überarbeiten, wenn ich wieder nüchtern bin */

This program is free software;
you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/

oxid-module-gtm's People

Contributors

marten-seemann avatar vanilla-thunder avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

oxid-module-gtm's Issues

Problem bei Installation 6.3

das Modul ließ sich nicht so einfach installieren
Folgende Anpassungen waren bei mir notwendig:

  • Version in /oxid-module-gtm-master/composer.json setzen
    "version": "0.5.0",

  • Application/Extend/ViewConfig
    Anpassung: public function getGtmContainerId()
    {
    // DWA Config Parameter war hier falsch geholt, war immer der Standardwert und nicht der aus der Datenbank
    $oConfig = Registry::getConfig();
    $this->sContainerId = $oConfig->getConfigParam('vt_gtm_containerid');
    return $this->sContainerId;
    }

  • dann alles (auf Ebene metadata.php) nach /packages/vt/oxid-module-gtm-master

  • composer config repositories.vt '{"type":"path", "url": "./packages/vt/*"}'

  • composer require --update-no-dev vanilla-thunder/oxid-module-gtm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.