Tracking
Measure how often and at which position visitors switch.
Settings

Send the change to a tracking tool
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
An empty field means tax_mode_change.
Consent cookie for the tracking tool
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:
| Value | Meaning |
|---|---|
topBar, header, offcanvas, product, footer, cart | the respective position |
popup | choice in the popup |
url | link 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.