Stape
Search
Try for free

Server-side tagging for Wix

Published
Oct 30, 2024

Wix is a leading cloud platform that enables users to create websites easily, without needing technical expertise. With its drag-and-drop editor, customizable templates, and features for building everything from blogs to online stores, it's a versatile tool for anyone looking to establish an online presence.

Recognizing the increasing demand for server-side tagging on Wix, we developed the Stape Server GTM app to simplify tracking setup and improve data accuracy for Wix websites.

In this article, we'll go over the solution, highlight its benefits, walk you through the setup process, and explain how to test the app configuration.

What are the benefits of Wix app

  • Automatically add web Google Tag Manager script.
  • Integrate server Google Tag Manager container, configure custom domain and Custom Loader for sGTM.
  • Enrich data layer with e-commerce events and user data.
  • Send webhooks to server Google Tag Manager container.

You can also take advantage of various free power-ups developed by Stape to enhance your server-side experience. They are designed to make the process as seamless as possible. Some of the popular options include:

  • Anonymizer – removes or anonymizes user data in GA4.
  • Stape Store – a built-in database that allows you to write, read, and sync data within server-side Google Tag Manager.

How to set up the Wix app for server Google Tag Manager

Before you begin, make sure you have set up server GTM container and host it on Stape.

1. Go to Wix App Market and choose Stape Server GTM app.

Click “Add to Site”.

Wix App Market 

Log in to your Wix account and download the app for free! 

2. Configure settings in three tabs: General Settings, DataLayers, and Webhooks.

2.1. General.

This tab contains all the options for configuring the GTM snippet installation on every page of your Wix site.

Add the following data:

  • Specify WEB container ID - add the GTM web container ID. The format should be the following: GTM-XXXXXXX. Here’s how to find Web Google Tag Manager (GTM) ID.
  • Add custom domain (optional) - use the subdomain you created for server-side tracking. If you don’t have a subdomain, please follow the instructions to add a custom domain to the sGTM container. With it, you are able to set first-party cookies and forget about third-party cookie limitations, ensuring more reliable data tracking and compliance with privacy regulations.
  • Add Stape container identifier or Custom Loader - that’s an optional parameter, but we highly recommend adding it as it increases protection against ad blockers. You can find the container identifier in the container section in Stape’s admin. For more detailed instructions, follow Stape’s guide on how to find the Stape container identifier.
stape server GTM app configuration for wix

2.2. Data Layers.

In this tab, you can find toggles that enable dataLayer events. With their help, you can enrich the data by adding product and user information.

  • view_collection
  • view_item
  • add_to_cart
  • view_cart
  • remove_from_cart
  • begin_checkout
  • add_shipping_info
  • add_payment_info
  • purchase
stape server GTM app configuration for wix

2.3. Webhooks.

Here, you can configure the webhooks to be sent to a specified URL for different events, such as purchases and/or refunds.

All you need to do is to add the URL of your server container (format: https://sst.example.com/data).

Turn on the fields according to the type of event - purchase and/or refund.

Check out the blog posts on using and debugging webhooks:

Click “Send text webhook”.

stape server GTM app configuration for wix

3. Send data to the server Google Tag Manager container. The two most common methods to achieve this are:

4. Set up tracking within the server Google Tag Manager container.

Most major marketing and analytics tools already offer support for server-side tagging and include tags for sGTM. Check out the list of platforms that support Google Tag Manager server-side tagging in our blog post.

You can use the pre-built templates for Wix, which will simplify the setup process for Meta, GA4, and Google Ads. Check out how to set up the templates in our article.

Text Wix app setup

To check your configuration, visit any website page and open your browser's console. Go to the network tab and search for your subdomain. If you find a request with a 200 status code, it means that the setup works properly.

Test  Wix app setup

To sum up

If you're looking for a quick and easy way to implement server-side tracking on your Wix website, Stape’s app is the ideal solution. With it, you can bypass ad blockers and browser limitations, send webhooks from offline stores, and enrich data with purchase and user details.

We hope this article will help you with the setup! And if you have any questions about Stape’s admin or have encountered any errors in the app, please feel free to contact us.

Try Stape for all things server-sideright now!