Web Analytics

Your SpreadShop offers you a chance to analyze customer behavior. This will provide you with important information to optimize 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.

Please note: Setting up a Facebook Pixel can take up to 24 hours. During this time, you may see a popup window asking you to complete the setup. You can confidently ignore it.

Other providers and own tracking

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 cart.
onBasketChange ...makes changes in the cart (deletes items, changes quantity/size, redeems coupon).
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.

    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); });

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 behavior. The events onBasketChange, onOrderSuccess and onCheckoutStep will only be issued once the customer gets to the checkout.

Was this article helpful?