承接 fusionlab-digital/ga4-tag-manager 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fusionlab-digital/ga4-tag-manager

Composer 安装命令:

composer require fusionlab-digital/ga4-tag-manager

包简介

Google Tag Manager Google Analytics 4

README 文档

README

Fusion Lab - Google Analytics 4 Extension

📌 Overview

Fusion Lab Google Analytics 4 Extension seamlessly integrates Google Analytics 4 (GA4) using Google Tag Manager, enabling advanced tracking for your Magento 2 store.

Includes all core events necessary for comprehensive analytics through GTM from your Magento 2 installation.

Optimized for speed through async code execution to append data to the dataLayer instead of on page load.

The extension is also compatible with Content Security Policy (CSP).

JSON File provided for your GTM container.

Semi PWA backend provided through rest endpoint to fetch product data.

⚡ Features

  • Magento 2.4.x support.
  • Includes settings JSON file that you can import to your Google Tag Manager Container.
  • Compatible with Content Security Policy (CSP).
    • dynamic nonce
  • Events Included
    • page_view
    • add_to_cart
    • remove_from_cart
    • view_item_list
    • view_item
    • view_cart
    • begin_checkout
    • add_payment_info
    • add_shipping_info
    • purchase
    • login
    • search
    • add_to_wishlist (new!)
  • Multi Website / Storeview Support

🛠️ Installation

Install via Composer 2.x

We recommend to install this module via a compatible version of Composer 2.x for your Magento 2 Installtion.

See your Magento 2 Requirements here.

composer require fusionlab-digital/ga4-tag-manager
php bin/magento module:enable FusionLab_GA4
php bin/magento setup:upgrade
php bin/magento s:d:c
php bin/magento s:s:d {Your Themes}
php bin/magento cache:flush

Manual Installation (not recommended)

  1. This module has a dependency to FusionLab_Core which you must first install. See the github page for installation instructions.
  2. Download the module and extract it into app/code/FusionLab/Ga4
  3. Run the following Magento CLI commands:
php bin/magento module:enable FusionLab_GA4 FusionLab_Core
php bin/magento setup:upgrade
php bin/magento s:d:c
php bin/magento s:s:d {Your Themes}
php bin/magento cache:flush

🚀 Setup

Open the Admin and navigate to Menu -> FusionLab -> Google Analytics 4

  1. Enable the Module
  2. Provide your GTM Container ID
  3. (recommended) Download the JSON file and import it to your GTM Container. Make sure you know what you are doing if other tags are present. In your GTM Container, navigate to variables and adjust the following Constants to your IDS. Google Ads Conversion Label, Google Analytics Ids, Google Conversion Id.
  4. Expand Event Settings and apply the configuration for item id, brand, and concat category
  5. (only for view_item_list) Expand Product Settings to apply the product list selector. Default value .products.wrapper,grid.products-grid is for clean theme.

⚙️ Configuration Documentation

Field Area Documentation
Enable Module? General Settings Enables or Disables the functionality of the module.
GTM Container Id General Settings Your GTM Container Id. Can be found at your Google Tag Manager container
Download JSON File General Settings Setup File that you can import into your Google Tag Manager container. See Image in the Admin for Instructions.
Use as Item Id Event Settings Is used for for ecommerce.items[].item_id. Make sure if you have Google Shopping XML this value is the same as your XML export.
Brand Attribute Code Event Settings Is used for ecommerce.items[].item_brand.
Concat Category Attributes into 1 field? Event Settings If yes then the categories will show in item_category as Women/Shoes/Running Shoes. If no then the item_category up to item_category5 will be filled.
Product List Selector Product Settings Is used for the view_item_list event. The selector is needed so the code gathers all the products to append to the data layer.

✅ Compatibility

  • Works with Magento 2.4.x
  • ⚠️ Should also work with any version of Magento 2 that Supports >=php7.4
  • Tested with Magento Luma Theme
  • Tested with Magento Custom Theme

📄 License

This module is licensed under the Apache 2.0 License. See LICENSE for details.

📩 Support

For any issues, feature requests, or inquiries, please open an issue on GitHub Issues, contact us at info@fusionlab.gr, or visit our website at fusionlab.gr for more information.

fusionlab-digital/ga4-tag-manager 适用场景与选型建议

fusionlab-digital/ga4-tag-manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 02 月 02 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 fusionlab-digital/ga4-tag-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 fusionlab-digital/ga4-tag-manager 我们能提供哪些服务?
定制开发 / 二次开发

基于 fusionlab-digital/ga4-tag-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 18
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2025-02-02