# Integrate Shoplytics into your shop system

# Shopify

### <span class="mw-headline" id="bkmrk-schritt-1-1">Step 1</span>

1. **Open the Shopify administration area**
2. In the left navigation, click on "Online Store" --&gt; "Themes"  
    [![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/K2Y3SPDmvhUPuOEz-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/K2Y3SPDmvhUPuOEz-image.png)
3. then in the top right (on your active theme) click on "Actions" and then on "Edit Code"  
    <span class="mw-default-size">[![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/cixtGPcy8TFCrIQb-image.png)](https://wiki.shoplytics.io/index.php?title=Datei:Shopify-2.png)</span>
4. then under "Layout" &gt; click on "theme.liquid"
5. On the right side of the source code, find the line with: &lt;head&gt;  
    [![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/ipRCrxHG7bTQ2xkW-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/ipRCrxHG7bTQ2xkW-image.png)
6. Now insert the Shoplytics script you received by email directly BELOW the &lt;head&gt; line

### <span class="mw-headline" id="bkmrk-schritt-2-1">Step 2</span>

1. In Shopify, go to Settings at the bottom left and then to Customer Events
2. Click on "Custom Pixels" and "Add Custom Pixel" and enter "Shoplytics"
3. At the very top, 2 privacy settings must now be configured. Due to the structure of the Shoplytics API, you can select the two "most lenient" options here  
    [![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/pOWzMTFWMUt3SvTD-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/pOWzMTFWMUt3SvTD-image.png)
4. At the very bottom, insert a code. Please click on the following link to see the code and copy the code 1:1: [http://shoplytics.de/shopify-pixel](http://shoplytics.de/shopify-pixel) (After inserting, Shopify will display a warning... You can ignore it. The code is correct.)
5. Now "save" **and then click on "connect"**

**Congratulations! Done.** Now please let our team know that you have set everything up.

## <span id="bkmrk--2"></span><span class="mw-headline" id="bkmrk-falls-deine-shopify--1">If your Shopify statistics suddenly no longer count all visitors because the consent banner does not communicate with Shopify...</span>

**Problem:**

As long as the consent banner is built in via Shopify plugins, etc., Shopify itself is notified in most cases when a user accepts the consent.

However, if you implement the consent banner differently, Shopify "loses" this direct connection and integration with the consent banner. As a result, Shopify assumes that NO consent has been given — and is therefore only allowed to record its own statistics in a reduced manner. This is why you see a sudden loss of sales data in your Shopify statistics.

**Solution:**

In order to give Shopify a clear indication that the statistics in your Shopify dashboard may continue to be displayed, you need to add the following code under "Custom Scripts" in the Shoplytics admin area.

<table class="wikitable" id="bkmrk-%C2%A0-window.shopify.cus"><tbody><tr><td>window.Shopify.customerPrivacy.setTrackingConsent( { analytics: true, marketing: true, preferences: true, sale\_of\_data: true }, function() { console.log( Shopify 'injecting consent.'); } );</td></tr></tbody></table>

However, make sure that this command is only actually executed when your visitors' consent is given: To do this, activate the option: "Comply with GDPR and only trigger when consent exists"

With the following command you can (e.g. enter in the browser console) find out whether the consent has been changed accordingly:

<table class="wikitable" id="bkmrk-window.shopify.custo"><tbody><tr><td>window.Shopify.customerPrivacy.currentVisitorConsent();</td></tr></tbody></table>

# Shopware

## <span class="mw-headline" id="bkmrk-schritt-1-%28von-1%C2%A0%3A%29-1">Step 1 (of 1:)</span>

#### <span id="bkmrk-"></span><span class="mw-headline" id="bkmrk-den-shoplytics-scrip-1">Integrate the Shoplytics script (which you received from us via email) into the &lt;head&gt; section of the shop.</span>

**Preferably at the very top of the head section for best results.** Please do not use "defer" or "async", as we manage the loading time of the tracking script proactively directly via Shoplytics. If you're not sure how to place the script in the head section (or don't have a developer who can do it), simply download the Shoplytics plugin for Shopware 5 or 6, which will then place the script in the perfect spot for you - without you having to click around in the source code.

**If you cannot place the script directly in the source code (which is the preferred recommendation), you can install the Shoplytics plugin for your Shopware version... (only necessary if you cannot/do not want to manually insert the script into the head section of your shop)**

Proceed as follows.

<table class="wikitable" id="bkmrk-%C2%A0-shopware-5-shopwar"><caption> </caption><tbody><tr><th>Shopware 5</th><th>Shopware 6</th></tr><tr><td>[To the plugin](https://drive.google.com/file/d/1_Un9WyqT2u-Rkz8x3apqC6kra1FbFV-x/view?usp=sharing)</td><td>[To the plugin](https://drive.google.com/file/d/1RQYQjK6_KMBi35aYQwjHQmGE83WhUNjw/view?usp=sharing)</td></tr></tbody></table>

1. The plugin must be added to Shopware via "Upload".
2. Enter your tracking URL in the plugin settings (you received this via email.)
3. Remember: "Clear Shopware cache" (only then will the changes be displayed to your visitors and data be collected), see screenshot below

[![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/vzSkQ18yGf5zpd5A-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/vzSkQ18yGf5zpd5A-image.png)

####   


<details id="bkmrk-wenn-ben%C3%B6tigt%2C-kanns-1"><summary>If needed, you can now also activate Dynamic Retargeting in Shopware...</summary>

In dynamic retargeting, the user's actions are passed on to Google Ads.

This way, following the shop visit, the user sees the appropriate advertisements for exactly the product they were interested in in the shop.

The Google Ads algorithm distinguishes between product page views, opened shopping carts, and purchases.

To achieve this, the IDs of the products communicated to Google via the Google Shopping feed must exactly match the product IDs used in the tracking.

Unfortunately, this is not always the case. Especially when the Shopping feed "pulls" the product ID from a different field in the Shopware database than the tracking system in the browser.  
  
  
  
**To check whether the IDs in the Google Shopping feed exactly match the IDs in the browser, we have prepared a small tool for you.**

You can find it here: [https://lookerstudio.google.com/reporting/e4016efc-6684-46ff-8216-7853639163d1](https://lookerstudio.google.com/reporting/e4016efc-6684-46ff-8216-7853639163d1)

If the IDs in the Shopping feed (left table) do not exactly match those in the right table (browser/tracking) (Attention: case sensitivity also counts), then you must adjust the Shopping feed export as follows:  
  
  
  
**Step 1:** Check which DataLayer version is active in your shop.

To do so, please open a PRODUCT DETAIL page in your shop and add the parameter ?datalayer=1 to the URL.

→ A large yellow window will open. It shows the version of your Datalayer.  
  
  
  
**Step 2:** Depending on the version of your Datalayer, you must adjust the Shopping feed so that the product ID (article ID) is pulled from the following field.

<table class="wikitable"><caption> </caption><tbody><tr><th> </th><th>Shopware 5</th><th>Shopware 6</th></tr><tr><td>Datalayer "Universal"</td><td>articleID</td><td>productID</td></tr><tr><td>Datalayer "GA4"</td><td>Ordernumber</td><td>Number</td></tr></tbody></table>

</details>

# Woocommerce

1. Install GTM (Google Tagmanager) plugin in WordPress: [https://de.wordpress.org/plugins/duracelltomi-google-tag-manager/](https://de.wordpress.org/plugins/duracelltomi-google-tag-manager/)
2. Open the plugin settings, enter the Google Tag Manager ID GTM-KK8SCVP and set Container Mode to ON below.
3. Then configure everything as follows  
    [![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/ez6fB8HRtJuZjmOz-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/ez6fB8HRtJuZjmOz-image.png)
    
    [![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/eQTMYf5GuyV2gjYd-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/eQTMYf5GuyV2gjYd-image.png)
4. **Embed the Shoplytics script**  
      
    You will find the Shoplytics script in the last email you received from us. This must be embedded in the head section of the page.  
    For this we recommend the free WordPress plugin "Tracking Code Manager**"**  
      
    *a. After you have installed the Tracking Code Manager, go to Settings → Tracking Code Manager in WordPress.*  
      
    *b. There, create a new tracking code, enter "Shoplytics" in the title and paste the Shoplytics script into the grey box. (Please paste it exactly as it appears in the email. Please do not click on the link contained in the script and insert the content. That would destroy your website. Please simply copy the script 1:1 from the email and insert it exactly as is.)* *c. Below the script, configure the settings as follows:*[![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/j33NPJFUqZhxuv2Y-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/j33NPJFUqZhxuv2Y-image.png)
5. **Only if you use the "WP-Rocket" plugin**  
    In order for the tracking code to load without errors in this case, you need to extend the Shoplytics script you received from us with the following code snippet. Insert the **bold part** at the same position in your script. Example code (only copy the bold part and add it to your script): &lt;script src="https://app.shoplytics.de/0000000.js" **data-cfasync="false"**&gt;&lt;/script&gt; If you have any problems with this, you can simply write to us stating that you use WP-Rocket, and we will adjust the script for you.
6. **Only if you use the "Nitropack" plugin**  
    Please click on the following link and make the adjustments so that tracking can work: [https://docs.google.com/document/d/1JR5MYsiKijrR3z0Hzhk\_ZZ\_pbAmIKEmpVZ6HxqlEkvQ/](https://docs.google.com/document/d/1JR5MYsiKijrR3z0Hzhk_ZZ_pbAmIKEmpVZ6HxqlEkvQ/)
7. **Only if you use the "Borlabs Cookie" consent manager**  
    In the Borlabs settings, an exception for https://tagmanager.google.com/ must be added in the "Script Blocker" tab, otherwise Shoplytics tracking will be blocked directly, even when cookies have been accepted. (If this is unclear, just send an email to Marco: technik@shoplytics.de) Through the exception in the script blocker, Shoplytics can be loaded immediately, and Shoplytics then checks whether tracking may be active or not. If the entire script blocker is disabled on your site, then no exception needs to be added.

### <span class="mw-headline" id="bkmrk-ladezeit-optimierung-1">Load time optimization</span>

Shoplytics helps you optimize the load time of your shop.

Ideally, Shoplytics serves the "GTM" (Google Tagmanager code) itself instead of having GTM4WP deliver it.

→ If in the page-speed test: [https://pagespeed.web.dev](https://pagespeed.web.dev/), the "GTM-KK8SCVP" is shown as render-blocking, proceed as follows:

**Change two settings in the GTM4WP plugin...**

1. 1. Instead of the GTM ID, enter the following in the "Google Tag Manager ID" field: GTM-EMPTY
    2. Under "Container code ON/OFF" select the setting "OFF" [![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/a07BXgZiJEfekDmm-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/a07BXgZiJEfekDmm-image.png)
    3. **Change the setting in [app.shoplytics.de/einstellungen](https://app.shoplytics.de/einstellungen)** In order for Shoplytics to deliver the Google Tagmanager in a load-time-optimized way, you must set the "Shop system" in Shoplytics to "Self-programmed". This way, Shoplytics knows that the GTM is not provided by the plugin, but that Shoplytics has to provide it.

# Plentymarkets

You have received a tracking code from us via email. Please insert it into the head section of the shop.

Once the code is in the shop, please send a short email to data@shoplytics.io. We will then ensure that all ecommerce events can be tracked.

# Oxid

You have received a tracking code from us via email. Please insert it into the head section of the shop.

Once the code is in the shop, please send a short email to data@shoplytics.io. We will then make sure that all ecommerce events can be captured.

# Magento

### <span class="mw-headline" id="bkmrk-schritt-1-1">**Step 1**</span>

Insert the Shoplytics script in the head section of the website. You have received this from us by email.

Step 2 differs depending on your Magento version:

### <span id="bkmrk-"></span><span class="mw-headline" id="bkmrk-magento-%28commerce-ve-1">**Magento (Commerce Version)**</span>

Follow Magento's instructions for activating the Tag Manager at the following link: [To the official guide](https://experienceleague.adobe.com/en/docs/commerce-admin/marketing/google-tools/google-tag-manager#step-3-configure-your-store)

You don't need to do anything other than follow the steps shown under Step 3. Enter "**GTM-KK8SCVP**" as the "GTM ID". (This is the official Shoplytics container. Nobody other than the Shoplytics developers gets access to it, in order to protect all Shoplytics customers.)

### <span id="bkmrk--1"></span><span class="mw-headline" id="bkmrk-magento-%28open-source-1">**Magento (Open Source Version)**</span>

1. Install GTM plugin: [To the plugin](https://marketplace.magento.com/weltpixel-module-google-tag-manager.html)
2. Configure the settings as shown in the following images (You can [find the *"Google Tag Manager Javascript Code"* here](https://jsfiddle.net/wqd5v3jx/))

```
If you do not want to purchase the GTM plugin, the datalayer can also be provided directly by Shoplytics. However, this requires custom programming for your shop (which is then loaded directly through the Shoplytics script.). The Shoplytics datalayer service is somewhat cheaper than the GTM plugin and can be booked at https://www.checkout-ds24.com/product/592227/.
```

[![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/bA1mzuwbaXWO1MqQ-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/bA1mzuwbaXWO1MqQ-image.png)

[![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/v67j6IwglfdQSrqf-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/v67j6IwglfdQSrqf-image.png)

[![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/ZICCYiGQmFGC4tZT-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/ZICCYiGQmFGC4tZT-image.png)

[![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/ClY1GB3HBKCsFdbm-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/ClY1GB3HBKCsFdbm-image.png)

[![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/pVqfbYHrRu4hK3up-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/pVqfbYHrRu4hK3up-image.png)

# JTL

1. Install GTM Plugin: [Go to Plugin](https://www.netzdinge.de/Lizenz-Plugin-Google-Codes)
2. Configure settings as follows: (You will find the tracking key in your email)

[![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/CAqSGbvhUZQUBqdi-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/CAqSGbvhUZQUBqdi-image.png)

# Wix

1. Log in to Wix and go to the settings via the menu.
2. Scroll all the way down and click on "Marketing Integrations".
3. Connect the "Google Tag". You received the required GA4 ID from us via **email**.
4. In the next step, the "Google Tag Manager" must also be connected under "Marketing Integrations". Here you enter the ID **GTM-KK8SVP**. (This is the official Shoplytics container. To protect you and all other Shoplytics customers, no one from the Shoplytics developers has access to this container.)
5. Now go back to the settings and click on "**Custom Code**" (This is exactly 2 items above "Marketing Integrations")
6. Now click on "Edit Custom Code" and insert the **Shoplytics code** at the very top, which you received from us via **email**.
7. For the name, you can simply enter Shoplytics. The remaining settings as shown in the image:  
    [![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/tGx3bm31vClp9LRI-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/tGx3bm31vClp9LRI-image.png)

# PrestaShop

1. Install GTM plugin: [Go to plugin](https://addons.prestashop.com/de/analysen-statistiken/23806-google-tag-manager-enhanced-ecommerce-ua-pro.html)
2. In the plugin, enter the Google Tag Manager ID **GTM-KK8SCVP**
3. Configure all settings as shown in the images:

```
If you do not wish to purchase the GTM plugin, the datalayer can also be provided directly by Shoplytics. However, this requires custom programming for your shop (which will then be loaded directly via the Shoplytics script). The Shoplytics datalayer service is slightly cheaper than the GTM plugin and can be booked at https://www.checkout-ds24.com/product/592227/.
```

[![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/ZFWf8Ff8vi7BTYCV-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/ZFWf8Ff8vi7BTYCV-image.png)

[![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/yrFdq0qX98BWQOP4-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/yrFdq0qX98BWQOP4-image.png)

[![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/PBqEWplQj0oPWRWK-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/PBqEWplQj0oPWRWK-image.png)

# Jimdo

1. Open your Jimdo admin interface
2. Click on "Settings"  
    [![SGRiHdXzLXXKvRXm-image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/W2GBOJtEoaFsE6QP-sgrihdxzlxxkvrxm-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/W2GBOJtEoaFsE6QP-sgrihdxzlxxkvrxm-image.png)
3. Click on "Edit Head"  
    [![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/HpcfluCtRHVh8ODN-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/HpcfluCtRHVh8ODN-image.png)
4. If something is already present in this "Head area" text field, then as a precaution, first make a backup copy of what is already there 🙂. Copy everything that is already in the code area here into a separate text document (on your computer). If you make a typo, or the internet suddenly disappears, you will always have a backup copy.
5. Click with the mouse before the existing text in the head area on the first line (see screenshot below)
6. Then simply paste the "Shoplytics Code" that you received via email into the first line of the HEAD area.  
    [![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/6mKhd6ZrPX9VGmjj-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/6mKhd6ZrPX9VGmjj-image.png)
7. Finally, click on "Save" at the bottom right  
    [![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/lUGjkzNapPAppXy7-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/lUGjkzNapPAppXy7-image.png)

  
**Check that everything is working:**

If you want to make sure that everything is working, you can proceed as follows.

1. Call up your shop URL with the following suffix at the end: ?check=1 Example: If your shop URL is: my-shop.com, then call up the following URL in the browser: my-shop.com?check=1
2. You should then see a large yellow sign in the browser that says: "**The Shoplytics script has been correctly embedded in the source code"**
3. If you do not see this sign, then please contact our technical team directly and we will help you further.

**Bonus task:**

Remove duplicate tracking scripts.

To avoid unnecessarily loading duplicate tracking scripts, proceed as follows:

# <span id="bkmrk-"></span><span class="mw-headline" id="bkmrk-doppeltes-%E2%80%9Cgoogle-an-1">Remove duplicate "Google Analytics" tracking</span>

1. Open the "SEO" section in your shop.  
    [![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/q7UCboYoF6ZGkV6h-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/q7UCboYoF6ZGkV6h-image.png)
2. Then click on "Google Analytics"  
    [![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/yVbOJQtP2SjrApYX-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/yVbOJQtP2SjrApYX-image.png)
3. If there is an account ID in there, then please send us an email with this ID, and we will also include it in the ProfitFinder. This saves loading time and additional code in your shop [![image.png](https://docs.shoplytics.de/uploads/images/gallery/2026-04/scaled-1680-/FUZp303af759e0tc-image.png)](https://docs.shoplytics.de/uploads/images/gallery/2026-04/FUZp303af759e0tc-image.png)

# X-Cart

1. Install the following plugin. This provides the "Ecommerce Datalayer according to Google Standard". The Ecommerce Datalayer delivers the necessary signals for tracking ecommerce events and product details. [https://market.x-cart.com/addons/google-tag-manager-classic.html?backURL=https%3A%2F%2Fmarket.x-cart.com%2Fsearch%2F%3Fsubstring%3Ddatalayer%23productid-5199](https://market.x-cart.com/addons/google-tag-manager-classic.html?backURL=https%3A%2F%2Fmarket.x-cart.com%2Fsearch%2F%3Fsubstring%3Ddatalayer%23productid-5199)
2. Place the Shoplytics code globally in the &lt;head&gt; section of the shop. You received the Shoplytics code from us by email. You can also find it at any time at [https://app.shoplytics.de/einstellungen/?tab=skript](https://app.shoplytics.de/einstellungen/?tab=skript)

# BigCommerce

1. Install the following plugin. This provides the "Ecommerce Data Layer according to Google Standard". The Ecommerce Data Layer delivers the necessary signals for tracking ecommerce events and product details. [https://www.bigcommerce.com/apps/tag-manager-suite/](https://www.bigcommerce.com/apps/tag-manager-suite/)
2. Place the Shoplytics code globally in the &lt;head&gt; section of the shop. You received the Shoplytics code from us by email. You can also find it at any time at [https://app.shoplytics.de/einstellungen/?tab=skript](https://app.shoplytics.de/einstellungen/?tab=skript)

# Custom development / unsupported shop system

### **Custom Development / Unsupported Shop System**

For Shoplytics to capture relevant e-commerce events in your shop (e.g. `view_item`, `add_to_cart`, `purchase`), it needs a clean e-commerce data layer.

This data layer provides structured information, including:

- Product IDs and variants
- Categories
- Prices and revenue
- Cart and order data

In short: Everything that turns visitors into measurable purchasing decisions.

#### **The standard Shoplytics relies on**

Shoplytics follows the common Google Analytics data layer standard (GTM version).

For many shop systems, ready-made plugins are already available. That's why our first, pragmatic tip is:

Search your shop's admin area for plugins with terms like

- "Data Layer"
- "Google Tag Manager"
- "GTM"

Many of these plugins provide the required e-commerce data layer right out of the box. If you're unsure whether a plugin is the right fit for you, feel free to send us the link at **<support@shoplytics.de>** and we'll quickly check it for you.

#### **Couldn't find a plugin for your shop? No problem.**

(PS: You shouldn't have to pay more than 10 euros per month for this ... there are plugins out there that charge ten times as much. That's way too much.)

Especially with more customized setups, it's completely normal for no plugins to be available. That's not a problem either.

In this case, you have two clean options:

#### **Option 1: Data layer implementation by your developer or agency**

Your developer implements the e-commerce data layer directly in your shop's source code.

This is the standard approach for:

- Custom-built shops
- Non-standardized shop systems
- Custom product, pricing, or cart logic
- (just forward this documentation to your developer)

You'll find the instructions for your developer at the bottom of this page.

#### **Option 2: We'll take care of it for you. Book the Shoplytics Data Layer Service**

What you get:

- A custom-built e-commerce data layer for your shop
- No development effort on your side
- Implementation according to the common, future-proof standard

Important: This data layer belongs to you. You can continue to use it independently of Shoplytics, since other plugins and tracking systems also align with this exact standard.

**[--&gt; Book the Data Layer Service now](https://www.checkout-ds24.com/product/592227/)**

So: **Whether from us, a plugin from your shop, or your shop agency –** **make sure you get a clean data layer based on this standard.**

You're not investing in a tool, but in a clean data foundation for your shop.

In the next step, you'll find the original Google documentation on this topic.

### <span id="bkmrk--1"></span><span class="mw-headline" id="bkmrk-anleitung-f%C3%BCr-deinen-1">Instructions for your developer on how to easily program the data layer</span>

1. **Programming the "DataLayer" and populating it with "Enhanced E-Commerce Data"** according to Google's own documentation (You can find the link to the full Google documentation and all possible events at the end of this document.): 
    1. You can limit yourself here to the following four events/page views: (Steps 1 through 4 are "mandatory" to start ecommerce tracking) 
        1. Viewing a product page (Documentation: "view\_item")
        2. Adding/removing a product from the shopping cart (Documentation: add\_to\_cart, or: remove\_from\_cart)
        3. Entering the checkout: begin\_checkout
        4. Transmission of successfully completed purchases (on the "Thank You page" after the purchase) (See purchase in the Google docs)
2. Please observe the "required" parameters in each of the data layer pushes in the original Google documentation (links below): 
    1. the respective event name (e.g. "view\_item" or "purchase")
    2. items &gt; item\_name &amp; item\_id
    3. currency
    4. value

**If you have any questions about the programming, feel free to contact us anytime at:**

support@shoplytics.de

#### <span class="mw-headline" id="bkmrk-die-doku-von-google--1">Google's documentation on the individual events:</span>

**Please have your developer team implement it exactly this way.**

(Also see the mandatory parameters in the ecommerce and items objects.)

At minimum, the events: view\_item, add\_to\_cart and purchase are necessary.

It would be better to have all of the following events...

  
**add\_payment\_info:**

https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&amp;client\_type=gtm#add\_payment\_info

**add\_shipping\_info:**

https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&amp;client\_type=gtm#add\_shipping\_info

**add\_to\_cart:**

https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&amp;client\_type=gtm#add\_to\_cart

**begin\_checkout:**

https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&amp;client\_type=gtm#begin\_checkout

**view\_item:**

https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&amp;client\_type=gtm#view\_item

**view\_item\_list:**

https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&amp;client\_type=gtm#view\_item\_list

**purchase:**

https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&amp;client\_type=gtm#purchase

**remove\_from\_cart:**

https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&amp;client\_type=gtm#remove\_from\_cart