Shopware Analytics

To utilize the Shopware Analytics extension, it is necessary to share your data. By providing us with your data, you assist us in enhancing our platform and developing new features and services. This enables us to actively improve our services using advanced technologies such as machine learning and specialised pattern recognition. The analysis of this data propels the continuous development of our product and promotes data-driven services for business success.

App activation

Due to incompatibilities, two versions are available depending on the version of your shop: one for Shopware 6.5 and one for Shopware 6.6 and higher.

- Shopware version 6.5 -> App version 1.4.x 
- Shopware version 6.6 and higher -> App version 2.4.x


The Shopware Analytics extension expands the analysis options of your shop. Once you have installed the extension, you will find the new analyses in the Dashboard > Analytics menu.

To use this service, it is necessary that you to grant Shopware access to your data so that we can analyse orders, customers, payments, etc. 

Some data calculations are currently taking place on your system. You should therefore be aware that large amounts of data can have an impact on system performance.

Time period

In the top right-hand corner, you can select the time period (1) you would like to analyse.

There are fixed selection options such as yesterday, the last 6 months, the current year or you can specify a time period that you would like to view.

Filter

You can also specify further filter conditions under Filter (2).

The following filter options are available to you:

  • Sales channel: Here you can choose between the sales channels of your shop if the statistics should only be displayed for one or a selection of the existing sales channels.

  • Country: In the selection field for the country, you can display certain countries to display the corresponding statistics. All countries from the country list in the admin are always available in the selection list, even if they are inactive.

  • Customer group: In the filter option for the customer group, you can select one or more customer groups that are available in your shop.

  • Customer account type: You can now break down the statistics by guest or registered customers.

  • Order status: Here you can easily filter by order status. Multiple selection is possible.

  • Payment status: This field allows you to filter by the payment status of the orders in your shop. It is possible to select several statuses at the same time and display the statistics for this.

  • Delivery status: The statistics for the delivery status can be queried via this selection field. Here you can also select and display several statuses at the same time.

Settings (Storefront Tracking)

In 2.4.0 and 1.4.0 we introduced new Analytics functions for storefronts based on event tracking. This means that KPIs and reports on your shop's customer journey can now be provided in Shopware Analytics. Event tracking is also a prerequisite for future, already planned KPIs and reports. Event tracking can currently be activated in standard storefronts. Integration for composable frontends and headless storefronts is planned for future updates.

To activate the tracking you find the button for the settings (3) at the top right.

In Storefront data tracking (1), you can activate or deactivate the individual sales channels for these statistics. You can set up your cookie management tool in the lower section Setup guide (2) of the settings by clicking on the various buttons. As soon as you have clicked on one of the buttons, a pop-up will appear with instructions that you can easily follow. Further down in the Setup guide (2), you will find a data protection paragraph that you can insert into the data protection page of your Shopping Experience.

After you have activated or deactivated data tracking for the storefront, the cache must be emptied via Settings > System > Caches & Indices.

Statistics

For each of the following statistics, you will receive additional information about the respective evaluation when you hover the mouse pointer over the info icon.

Through the context menu ...-icon, this action is available for each statistic:

  • Export as CSV - Download the evaluation data as a comma-separated file (CSV), which you can use, for example, in a spreadsheet.

Backend (Backend metrics)

Total sales

This statistic shows you the total value of your orders for the evaluation period. 

The report uses gross sales with status paid but without any fees or deductions . 

Orders

In this analysis you can see the development of the number of orders. For example, you can see when the most orders are placed in your shop. The Y-axis shows you the number of orders, the X-axis gives you information about the time frame.

Average order value

The analysis periodically determines the average order value of all orders received during this period. The Y-axis shows you the average order value in your currency, while the X-axis gives you information for the time frame.

Payment methods

In this report, you can see which payment methods are used in your shop and in what proportion.

Customers

Track the development of the total number of your customers with this report. The Y-axis shows you the total number of customers, while the X-axis gives you information for the time frame.

New Customers

Use this analysis to find out which customer growth you had on which day in absolute figures. The Y-axis displays the total number of new customers, while the X-axis gives you information for the time frame.

Discounts and promotions

This evaluation shows you how your promotions and discounts were used by customers and how often they were activated.

Sales by manufacturer

This analysis shows you exactly how many products were sold per manufacturer.

With version 1.1.0, the function has also been added that you can now display the icons/logos of, for example, the shipping method, the payment method or many more in the tabular evaluations.

Sales by country

In this analysis you can see to which countries you have sold your products. You can switch between the billing address and the delivery address at the top right.

Product sales

With the help of this analysis, you can easily see which products have been sold in your store and how often. You also have the option of displaying all variant products individually or running them under the main product. You can change this using the button at the top right.

Shipping methods

This analysis gives you valuable insights into which shipping methods generate the most sales. This allows you to optimise your logistics strategy to achieve maximum results.

Storefront (Storefront metrics)

Page views

This key figure shows you all of your users' page views within the selected time period. Every visit to a page is counted, regardless of whether an individual user visits the same page several times.

Users are visitors to the storefront and logged-in customers as well as registered guest users.

You can use the other filters, such as ‘by country’ or ‘by customer group’, to fine-tune the display.

As soon as the cookies for Shopware Analytics are activated by the user in the storefront, page views are recorded.

Unique visitors

This metric shows the total number of unique visitors who have visited your online store within a specific time period. Each visitor is counted only once, regardless of how many times they visit the website during that period.

Definition of the metric


In the table you will find the various metrics and their data source in Shopware (database) as well as the respective definition/calculation.

MetricData source in Shopware (Entities)Definition / Calculation
Total sales
  • order
  • currency
  • order_address
  • order_customer
  • order_delivery
  • order_transaction
  • state_machine_state

Definition: Gross value of all orders

Calculation:

TotalSales = Sum of (Gross sales in each interval / currency factor)

* interval could be hour/day/month

* value in default currency of the shop

Orders
  • order
  • order_address
  • order_customer
  • order_delivery
  • order_transaction
  • state_machine_state

Definition: Number of received orders

Calculation: As definition

Average order value
  • order
  • currency
  • order_address
  • order_customer
  • order_delivery
  • order_transaction
  • state_machine_state

Definition: Total net product value per number of received orders. Exclude discount, promotion and credit

Calculation:
AverageOrderValue = Total Sales / Number of Orders

Payment methods
  • order
  • payment_method
  • media
  • order_address
  • order_customer
  • order_delivery
  • order_transaction
  • state_machine_state

Definition: Percentage distribution of payment methods used.

Calculation:
Payment method distribution = Number of orders using this payment method / Total number of 

Customers
  • customer
  • customer_address

Definition: Accumulated total number of active customer accounts.

Calculation: As definition

New customers
  • customer
  • customer_address

Definition: Number of newly registered customers

Calculation:
New customers = Number of newly registered customers on each interval

Table: customer
Field/Column: created_at

Discounts and promotions
  • order_line_item
  • order
  • order_address
  • order_customer
  • order_delivery
  • order_transaction
  • state_machine_state
  • customer
  • promotion

Definition: Number of redeemed promotions codes

Calculation:

Value of each promotion code = Number of times a fixed promotion code is used in an order

Sales by manufacturer
  • order_line_item
  • order
  • order_address
  • order_customer
  • order_delivery
  • order_transaction
  • state_machine_state
  • customer
  • product_manufacturer
  • media
  • product

Definition: Number of products sold by manufacturer

Calculation:

Sales of a manufacturer = Total sales quantity of all products and theirs variants that belong to that manufacturer

Sales by country
  • order
  • country
  • media
  • order_address
  • order_customer
  • order_delivery
  • order_transaction
  • state_machine_state

Definition: Number of orders by billing or shipping country

Calculation:

Sales of a country = Total number of orders that have this country as billing address (or shipping address depends on the chart filter)

Product Sales
  • order_line_item
  • order
  • order_address
  • order_customer
  • order_delivery
  • order_transaction
  • state_machine_state
  • customer
  • media
  • product

Definition: Total quantity of products in orders. Variants can be displayed individually or grouped into a single product

Sales of a product = Total sales quantity of all products and theirs variants

Shipping Methods
  • order
  • shipping_method
  • media
  • order_address
  • order_customer
  • order_delivery
  • order_transaction
  • state_machine_state

Definition: Percentage distribution of shipping methods used


Calculation: Payment method distribution = Number of orders using this shipping method / Total number of orders

Troubleshooting

Understanding incorrect metrics or deviations

When analyzing metrics in Shopware Analytics, there are several reasons why figures might deviate from expectations or appear incorrect. These can range from variations in data processing to the level of customization in your Shopware setup.

Deviations between figures from different sources or tracking tools are normal and can result from factors such as consent rate, metric definitions, timeframes, data properties or how the data is processed by each individual tool. While some variation is expected, it should not deviate significantly from reality.

Shopware Analytics relies on the Shopware Standard for data collection and metric calculations. If your Shopware instance has been heavily customized, the figures in Shopware Analytics might be inaccurate or appear inconsistent. We can only ensure correct results when using the standard configuration.

Debugging

1. App registration for ‘SwagAnalytics’ failed: The app url changed. Please resolve how the apps should handle this change.

Explanation:

Every time a request should be made against an app backend, Shopware will check whether the current APP_URL differs from the one used when  Shopware generated an ID for this shop.

Solution:

If the APP_URL differs, Shopware  will stop sending any requests to the installed apps to prevent data  corruption on the side of the apps.

Now the user has the possibility to  resolve the solution by using one of the following strategies:

The user  can either run a strategy with the bin/console app:url-change:resolve command, or with a modal that pops up when the Administration is opened.

Further information can be found here in the developer documentation.

2. Tracking activation doesn't work (Missing activation buttons in Settings)

This issue may occur if Shopware Analytics is installed in a restricted environment that cannot communicate with our App Server, such as a local test environment or a staging environment with limited access. Communication with the App Server is required to activate storefront tracking, process event data from your storefront, and provide metrics to Shopware Analytics.

If you want to use Storefront Tracking, first enable your Shopware environment for external communication. After, disable and then activate Shopware Analytics again. Now try to activate Storefront Tracking in the settings page.

Was this article helpful?