Download the PHP package webmatch/tag-manager-sw6 without Composer

On this page you can find all versions of the php package webmatch/tag-manager-sw6. 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 tag-manager-sw6

WbmTagManagerEcomm - GTM integration and dataLayer configuration


This Plugin will no longer be maintained.
Please use the new Plugin WbmTagManager
It has full support to GA4 and also a version for Shopware 6.5



This plugin integrates a new module within the Shopware backend that allows for the integration of the Google Tag Manager Snippet and the configuration of the dataLayer content.

The plugin offers the following features:

Requirements

Installation

Download it from the shopware store and install it manually within the shopware backend.

Alternative Installation via composer

After installation, use the following commands to install and activate the plugin in shopware

or the following to update, if previously installed

:exclamation: Attention :exclamation:

With version 1.0.0 composer package was renamed from wbm/tag-manager to webmatch/tag-manager-sw6 in order to publish the package on packagist. If you used a version <= 0.2.5, and you want to update this plugin, your composer.json should be updated too.

Usage

The module will be accessible in backend through a new menu point.

The plugin comes pre-configured for:

Use syntax like item in lineItems as value for properties that are supposed to contain iterative elements.

Adding modules

Modules are essentially configurations of a dataLayer for a specific view, meaning sites of more or less the same type.

When adding new modules you're prompted to enter a name (what the new tab will read) and a route for the module.

The route must be equal to the one of the controller action that is supposed to be tracked.

After adding a module you will find a new tab in the main screen, where you can declare the properties for the dataLayer of that specific route.

Additional Twig functions/filters

dbquery

The Twig function {{ dbquery(select, from, where, order) }} is available for the compiling of dataLayers. The function allows you to fetch a single value from any database table. You can pass one or multiple criterias to be used in WHERE and ORDER BY statements.

The following example will work in the dataLayer of the "Add to basket" module and will fetch the product number of the newly added product.

Please note the use of single quotes only and the arguments in form of twig hashes e.g. {'id =': item.id|uuid2bytes}.

Also be aware that this feature is reliant on proper syntax, meaning you have to pass an operator with the column name and the columns as well as the values have to exist. Syntax errors will be caught and will result in an empty string to be returned instead.

uuid2bytes

The Twig filter |uuid2bytes will convert uuid strings to binary format for the use in dbquery functions and the like.

languageid

Function that returns the current language id in binary format. For use in dbquery functions when fetching translations and the like.

currencyiso

Function that returns the 3 letter ISO code of the storefronts currency.

cartaddprice

Function that sets a flag in the session in order to catch the price in from AfterLineItemAddedEvent, which will be injected into the dataLayer right before passing it to the frontend. Primarily for use in addToBasket events.

cartremoveprice

Function that returns the unit price of a product when removed from the basket in its current state.
Expects parameter for product id in non-binary format.
Optionally takes a second boolean paramater and, when true, will return the quantity of the product before removal. Primarily for use in removeFrombasket events using URL queries as parameters.

getvariantdescription

Function that returns a concatenated string of properties for a product variant. Returns empty string if the product is not a variant. Takes either a product id in non-binary format or an existing array of options.

getparam

Function that returns a specific GET/POST/route parameter if available.


All versions of tag-manager-sw6 with dependencies

PHP Build Version
Package Version
Requires shopware/core Version *
ext-json Version *
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 webmatch/tag-manager-sw6 contains the following files

Loading the files please wait ....