Home Devert | Switch between gross/net in frontend (DevertTaxSwitch) Documentation Shopware Store ↗ Deutsch

Tracking

Measure how often and at which position visitors switch.

Settings

Configuration card “Tracking”

Send the change to a tracking tool

Default: None (only the browser events) Configuration card: Tracking

Choices: None (only the browser events) dataLayer (Google Tag Manager / GA4) Matomo Tag Manager (_mtm)

“None” sends nothing to a tool. The browser events are always fired.

Name of the tracking event

Default: tax_mode_change Configuration card: Tracking

An empty field means tax_mode_change.

Consent cookie for the tracking tool

Default: google-analytics-enabled Configuration card: Tracking

The event only goes to the tool if this cookie exists with the value 1. The default matches the Google Analytics entry of Shopware. For another tool, accept it in the cookie banner and check in the browser which cookie is created.

With an empty field the event is always sent. This only makes sense if your tag manager handles consent itself. Please check this legally.

Data sent

{
  "event": "tax_mode_change",
  "tax_mode_from": "gross",
  "tax_mode_to": "net",
  "tax_mode_source": "header"
}

Possible values of tax_mode_source:

ValueMeaning
topBar, header, offcanvas, product, footer, cartthe respective position
popupchoice in the popup
urllink with ?tax=

In Google Tag Manager, create a trigger of the type “Custom event” with the event name. Read the other three values as data layer variables. Before the reload the plugin briefly waits for the tool, about one second at most.