rapidez/elgentos-serverside-analytics

此包的最新版本(0.5.0)没有可用的许可信息。

Rapidez Elgentos 服务器端分析

0.5.0 2023-04-05 07:45 UTC

This package is auto-updated.

Last update: 2024-09-05 10:46:02 UTC


README

此包安装了Laravel GAMP,它使用Google Analytics Measurement Protocol 库将页面浏览量发送到Google Analytics。在此基础上,当结账凭证保存时,它将生成的客户端/用户ID发送到Magento,因此Elgentos的服务器端分析包具有相同的ID,因此页面浏览量和订单可以关联起来。

要求

在您的Magento 2安装中安装并配置了分支服务器端分析

composer config repositories.elgentos/serversideanalytics2 git https://github.com/jbclaudio/magento2-serversideanalytics.git
composer require elgentos/serversideanalytics2:dev-master

安装

composer require rapidez/elgentos-serverside-analytics

配置

将Google中的UA代码添加到您的.env文件中,使用GA_ID=,或者发布配置文件,然后根据您的喜好进行配置

php artisan vendor:publish --provider="Irazasyed\LaravelGAMP\LaravelGAMPServiceProvider"