GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - BitBagCommerce/sylius-google-analytics-plugin: Sylius ecommerce plugin for support Google Analytics 4, using gtag.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

149 Commits
149 Commits

Folders and files

NameName
Last commit message
Last commit date
.docker
.docker
 
 
.github
.github
 
 
assets
assets
 
 
bin
bin
 
 
config
config
 
 
docs/img
docs/img
 
 
etc/build
etc/build
 
 
features
features
 
 
public
public
 
 
src
src
 
 
tests
tests
 
 
.editorconfig
.editorconfig
 
 
.env
.env
 
 
.env.test
.env.test
 
 
.gitignore
.gitignore
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
UPGRADE.md
UPGRADE.md
 
 
behat.yml.dist
behat.yml.dist
 
 
composer.json
composer.json
 
 
docker-compose.override.yml
docker-compose.override.yml
 
 
docker-compose.yml
docker-compose.yml
 
 
ecs.php
ecs.php
 
 
node_modules
node_modules
 
 
package.json
package.json
 
 
phpspec.yml.dist
phpspec.yml.dist
 
 
phpstan.dist.neon
phpstan.dist.neon
 
 
phpstan.neon
phpstan.neon
 
 
phpunit.xml.dist
phpunit.xml.dist
 
 
psalm.xml
psalm.xml
 
 
symfony.lock
symfony.lock
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

image

Google Analytics 4 Enhanced ecommerce Plugin

Need help ?

Drop us a message [email protected]

Overview

This plugin is used to connect Sylius with Google Analytics 4 using Google Tag Manager (gtag.js). It integrates with all ecommerce GA4 events. Additionaly it measures page load time and post it as event to GA4.

Event Description
add_to_cart A user adds one or more products to a shopping cart
view_cart A user loaded shopping cart view
remove_from_cart A user removed item from shopping cart
begin_checkout A user initiates the checkout process for one or more products
add_shipping_info A user provided shipping data in checkout process
add_payment_info A user provided payment data in checkout process
purchase A user completes a purchase
view_item A user views details for a product
search A user searched for a term
view_item_list A user views a list of one or more products
login A user logged in to the shop
signup A user signup in to the shop
timing_complete Measures page load time

Links

https://support.google.com/tagmanager/answer/6103696?hl=pl&ref_topic=3441530
https://developers.google.com/analytics/devguides/collection/protocol/ga4
https://ga-dev-tools.web.app/ga4/event-builder/
https://support.google.com/tagassistant/answer/10042782
https://tagassistant.google.com/

Details

It is designed based on backend Sylius events for high compatibility no matter what template your Sylius store is using.

Compatibility

Sylius PHP Symfony
1.13.x, 1.14.x 8.1, 8.2, 8.3 5.4, 6.4

Quickstart Installation

  1. Add configuration to config/services.yaml with your Google Tag identificator default for all channels:

    spinbits_sylius_google_analytics4:
        id: "G-XXXXXXXXXX"

    For dedicated GTag Id per channel you can pass channels_ids. It contains key-value array where key is channel code and value is assigned Google Tag identificator.

    spinbits_sylius_google_analytics4:
        id: "G-XXXXXXXXXX"
        channels_ids:
            FASHION_WEB: "G-DF1P3RRJ8S"
            OTHER_CHANNEL: "G-WX1RJ8SP3R"
  2. Install plugin:

    composer require bitbag/google-analytics-4-plugin

Develop

  1. Execute make start

  2. See your browser open localhost

You can find more examples in tests directory and in this repo: Google Analytics 4 Enhanced ecommerce Plugin

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

About

Sylius ecommerce plugin for support Google Analytics 4, using gtag.

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.