# Shopify

### **Schritt 1: Zugriff auf deine Online-Store-Themes**

Melde dich in deinem **Shopify-Store** an und navigiere im Admin-Panel zu **Onlineshop > Themes**.

Klicke auf **Themes**.

<figure><img src="/files/dlz2qsogQzMY6u0FKOhC" alt=""><figcaption><p>Click on Themes</p></figcaption></figure>

### **Schritt 2: Code bearbeiten**

Suche dein aktives Theme und klicke auf das **Drei-Punkte-Menü**.\
Wähle im Dropdown **Edit Code**, um auf die Theme-Dateien zuzugreifen.

Klicke auf **Edit code**.

<figure><img src="/files/Am9OnYEVGxUvLqJZjqPu" alt=""><figcaption><p>Click on Edit code</p></figcaption></figure>

### **Schritt 3: Mazing-Integrationsskript hinzufügen**

Gehe im Code-Editor in das Verzeichnis **Assets**.

Klicke auf **Add a new asset** und erstelle eine neue **JavaScript-Datei**.\
Benenne die Datei zum Beispiel **`mazing-integration.js`**.

In dieser Datei kannst du dein **individuelles Integrationsskript** schreiben.

{% hint style="info" %}
Ein Beispielskript findest du hier: **Variant Integration Example**
{% endhint %}

<figure><img src="/files/8kcoD4MhBSTXFPxQZVVi" alt=""><figcaption><p>Add your custom mazing-integration script</p></figcaption></figure>

### **Schritt 4: Skript integrieren**

Sobald dein **`mazing-integration.js`**-Skript fertig ist, musst du es in dein Shopify-Theme integrieren, indem du die Datei **`theme.liquid`** bearbeitest.

Öffne deine **`theme.liquid`**-Datei.

<figure><img src="/files/ORqYFj4e5zFopUMOtxEE" alt=""><figcaption><p>Open your theme.liquid file</p></figcaption></figure>

#### **Mazing CDN-Skript**

Füge dieses Skript am Ende des **`<head>`-Elements** ein:

<figure><img src="/files/hTp6JRbmaK3BTX4SQSf5" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}

```
<!-- Add this to the <head> section -->
<script defer type="text/javascript" src="https://cdn.mazing.link/mzg-in.js"></script>
```

{% endhint %}

#### **Dein mazing-integration.js Skript**

Füge dieses Skript am Ende des **`<body>`-Elements** ein:

<figure><img src="/files/8BgbXRvekrYPpIqE4LEP" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}

```
<!-- Add this to the <body> section -->
<script defer type="module" src="{{ 'mazing-integration.js' | asset_url }}"></script>
```

{% endhint %}

### 🎉 **Glückwunsch!**

Du hast dein **individuell angepasstes Mazing-Skript** erfolgreich in deinen **Shopify-Store** integriert!

Dein neues Skript erweitert nun deinen Shop um die gewünschten Funktionen und sorgt für eine **bessere User Experience** für deine Kunden.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mazingxr.gitbook.io/mazing-world/de/integration-shops/shopify.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
