Menu

Web Analytics

Your SpreadShop offers you a chance to analyse customer behaviour. This will provide you with important information to optimise your Shop. For example, you can find out how many customers start or complete the checkout.

This is how tracking works on Facebook.

Tie in these Google or Facebook services with your SpreadShop – it’s easy. We’ve installed software interfaces to connect to the services of these providers. All you need to do is enter your ID in Spreadshirt’s partner area.

Activate Google and Facebook tracking

To use tracking offered by Google and Facebook, go to your partner area and click on Extended > Tracking. You’ll find an entry field for your Analytics ID (Google) or Pixel ID (Facebook). As soon as you save these, tracking will be activated automatically. Data will be provided from the analysis tool.

Define tracking yourself

Experienced users can define tracking options themselves by using, for example, hotjar or crazyegg. Go to your partner area, and click Extended > Tracking. You’ll find the option “Other tracking tools” to enter the code of your provider. You can also define your very own tracking code.

Event Is triggered if a customer...
onUpdate ...changes the category (men, women, etc.) or moves from a list page to a detail page.
onAddToBasket ...puts an item in the basket.
onBasketChange ...makes changes in the basket (deletes items, changes quantity/size, redeems voucher).
onCheckoutStep ...gets a step closer to checkout (e.g. from address to payment options).
onOrderSuccess ...completes an order successfully.

This is how you integrate your code in the input field.

<script>
    window.sprdShop.onUpdate(function (data) { console.log(data); });
    window.sprdShop.onAddToBasket(function (item) { console.log(item); });
    window.sprdShop.onBasketChange(function (data) { console.log(data); });
    window.sprdShop.onCheckoutStep(function (data) { console.log(data); });
    window.sprdShop.onOrderSuccess(function (data) { console.log(data); });
</script>


This code will only issue objects in consoles so you can check whether everything works. Then replace console.log(data); with the code of the analytics tool you use so that it makes it into your shop and you can track visitor behaviour. The events onBasketChange, onOrderSuccess and onCheckoutStep will only be issued once the customer gets to the checkout.

Was this article helpful?