Shopware Tip: Track all shopping cart activities of your store with ga Analytics

29.11.2017
by Meike Müller
Shopware
Banner
If you run an online store, it is particularly important to analyze and track the behavior of your customers. Only in this way is it possible for you to introduce targeted measures that will drive the growth of your e-commerce in the long term. That's why we have the following tip for you:

Below is a guide on how you can successfully track the clicks on the shopping cart button and all other shopping cart activities. For this, you don't need to customize all pages in the template individually. We use jQuery and deposit a small script in our individual JavaScript.

THIS WILL LOOK LIKE THIS:

$(function () { 
    // ga analytics stuff to track cart actions
    var pagePath = window.location.pathname;
    var mainTitle = $('h1').text();
    $('.buybox--button').click(function() {
        ga('send', 'event', 'shopping cart click', mainTitle, pagePath);
    });
});

 

We only capture the detail page here. If you have additional shopping cart buttons on the page, for example in the listing or the sliders, you must add the code accordingly.

THIS COULD LOOK LIKE THIS:

 
$(function () { 
    // ga analytics stuff to track cart actions
    var pagePath = window.location.pathname;
    var mainTitle = $('h1').text();
    $('.buybox--button, .buybox--form .product--actions, .buybox--form .layer--btn').click(function() {
        ga('send', 'event', 'shopping cart click', mainTitle, pagePath);
    });
});

 


The most important key figures for your online shop

The most important metrics include visitor numbers, conversion rate, return rate and abandonment rates of your customers. The customer behavior in your store and your sales are the basis of all key figures of every online store. Shopware customers can find the data needed for this in the backend of Shopware under the points Marketing and Evaluation. A separate tool for this is Google Analytics.

The conversion rate is a KPI (Key Performance Indicator) from online marketing. It shows the ratio of visitors to a website to conversions and is given as a percentage. What exactly the conversion is, can be determined in advance. No matter if this should be a transaction, a newsletter subscription or a successful download - you decide. The conversion rate is used to calculate the efficiency of your banner ads, websites or online stores in order to get the maximum return from advertising campaigns. To calculate it we need the following formula

Number of buyers * 100 / visitors

To increase your conversion rate, it helps to make your website as attractive as possible. Improve your content with photos, graphics or videos, create a user-friendly interface and operation as a basis for a satisfied customer. If you run an online store, offer your customers an easy way to register to keep them. Overly complicated forms often cause frustration and make your just-willing-to-buy customer bail. There are many ways to drive your conversion rate up.

Are you facing other challenges with your online shop? We offer you a full package of Shopware support and monitoring. We at EXWE are happy to answer your questions and support you in building your store.

Was ist dein Projekt? Wenn du uns darüber erzählen möchtest, rufen wir dich zurück!

 
Meike
Meike
from 29.11.2017

Hello, my name is Meike. I take care of the EXWE back office and am responsible for our social media channels. All of our articles are meant to make your life easier and help you make decisions. Nevertheless, it can happen that something remains unclear, so: If you have questions about this article you can easily reach me at +49 231 93149827.

Du möchtest immer am Zenit der Technik bleiben? Keine News und Blogbeiträge mehr verpassen.
We also have the following interesting posts from our tech blog for you on this topic
So long texts are possible with the Digital Publishing Plugin!

Our CSS hack that lets you map any length of text to Shopware and work around the plugin's issues.

Tips and Tricks for your Shopware Shop: Shopware Italian States

The Shopware insert the Italian states - Use our tips and tricks about Shopware and optimize your online store now!

E-commerce tip: Shopware category on noindex

Shopware category on noindex, ex. SALE category - customization in backend, theme and settings within categories.




info@exwe.de
+49 231 93149827