> For the complete documentation index, see [llms.txt](https://docs.adpage.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.adpage.io/integrations-websites/shopify/disconnecting-old-marketing-scripts-in-shopify.md).

# Disconnecting old marketing scripts in Shopify

How to disconnect various analytics and advertising tools from your Shopify store to ensure there will be no double tracking.

When you publish your server-side tagging setup, Shopify’s built-in sales channel apps may still be sending data directly to Google, Meta, TikTok and Pinterest. If these connections stay active, events are tracked twice: once through your server-side setup and once through Shopify itself.

This guide explains step by step how to disconnect these native integrations. This turns off third-party tracking from Shopify and makes sure your server container URL is the leading destination for your data, instead of Shopify’s own GA4 connection. Follow the instructions below for Google Analytics 4, Meta Ads, TikTok Ads and Pinterest.

### Google Analytics 4

To disconnect Google Analytics 4:

* Navigate to the Google & YouTube app in Shopify.&#x20;
* Open the settings of this app.
* If a Google Analytics property is still connected, disconnect it.

<figure><img src="https://1274044937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FVXl4DDLp8TqBWmbwp1X3%2Fimage.png?alt=media&amp;token=6c884de1-a55e-4e4d-af24-15b8ca18ba04" alt=""><figcaption></figcaption></figure>

* Also ensure the Conversion Tracking option is turned off.

<figure><img src="https://1274044937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FfA1U6TnW7gmkM6m3lxh3%2Fimage.png?alt=media&amp;token=1437481c-1f54-4a09-be1b-d19dfb131692" alt=""><figcaption></figcaption></figure>

### Meta Ads

To disconnect Meta Ads:

* Go to the Facebook & Instagram app in Shopify.
* Click Settings at the top.
* If Data sharing is turned on, ensure that you disable this option.

<figure><img src="https://1274044937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FvFUXV9FQ77RnygufwXWe%2Fimage%20(56).png?alt=media&amp;token=a56027d1-1b75-4d0f-8196-2636ff28ae09" alt=""><figcaption></figcaption></figure>

* Also check the tracking settings in your Meta Events Manager configuration.

### TikTok Ads

To disconnect TikTok Ads:

* Go to the TikTok app in Shopify.
* Click Settings at the top.
* Go to the Data sharing settings.
* Click Disconnect next to the Pixel.

<figure><img src="https://1274044937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FLBI6iB924k4SerhcEAmn%2Fimage%20(57).png?alt=media&amp;token=aab9a85b-32a7-40cd-92d8-f7489967f593" alt=""><figcaption></figcaption></figure>

### Pinterest

To disconnect Pinterest:

* Go to the Pinterest app in Shopify.
* Go to the Marketing settings.
* Make sure the Pinterest tag is disconnected, so you no longer share data directly with Pinterest.

<figure><img src="https://1274044937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FqPuwEduqKXy0RcK2U3MT%2Fimage%20(58).png?alt=media&amp;token=235a589c-34e7-4a90-9cbb-e7e44e2e7625" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.adpage.io/integrations-websites/shopify/disconnecting-old-marketing-scripts-in-shopify.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
