Download the PHP package bitbag/google-analytics-4-plugin without Composer

On this page you can find all versions of the php package bitbag/google-analytics-4-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package google-analytics-4-plugin

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.

Quickstart Installation

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

    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.

  2. Install 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

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.


All versions of google-analytics-4-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0 || ^8.1 || ^8.2
ext-json Version *
spinbits/google-analytics-4-events-dto-s Version ^0.9.0
sylius/sylius Version ~1.13.0 || ~1.12.0 || ~1.11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bitbag/google-analytics-4-plugin contains the following files

Loading the files please wait ....