---
title: How to Add Microsoft UET Tag to Your Shopify Store
description: Universal Event Tracking (UET) lets you track user actions on your website and measure campaign performance in Microsoft Advertising. Follow these steps to add your UET tag to your Shopify store.
---

[Skip to content](https://kb.feedops.com/knowledge/how-to-add-microsoft-uet-tag-to-your-shopify-store#main-content)

English

Show submenu for translations

[![Feedops-logo\_Final-2-4 1](https://kb.feedops.com/hs-fs/hubfs/Feedops-logo_Final-2-4%201.png?width=150&height=55&name=Feedops-logo_Final-2-4%201.png)](https://kb.feedops.com/knowledge?hsLang=en)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Contact Us](https://feedops.com/contact-us/)

[Contact Us](https://feedops.com/contact-us/)

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center](https://kb.feedops.com/knowledge?hsLang=en)
2. [Website Integration Help](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en)
3. [Shopify](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#shopify)

# How to Add Microsoft UET Tag to Your Shopify Store

## Universal Event Tracking (UET) lets you track user actions on your website and measure campaign performance in Microsoft Advertising. Follow these steps to add your UET tag to your Shopify store.

#### Prerequisites

Before you begin:

- You’ve connected your Microsoft Ads account.
- You’ve created a UET tag using the **“Create UET Tag”** button in the setup flow.  
  ![Screenshot 2025-06-29 at 4.50.51 PM](https://kb.feedops.com/hs-fs/hubfs/Screenshot%202025-06-29%20at%204.50.51%20PM.png?width=688&height=519&name=Screenshot%202025-06-29%20at%204.50.51%20PM.png)
- You can access your Shopify theme code.![Screenshot 2025-06-29 at 4.54.39 PM](https://kb.feedops.com/hs-fs/hubfs/Screenshot%202025-06-29%20at%204.54.39%20PM.png?width=688&height=380&name=Screenshot%202025-06-29%20at%204.54.39%20PM.png)

### **Step 1: Copy Your UET Tag Code**

1. In the **UET Tag & tracking setup** step of your setup flow, locate the **JavaScript snippet** under “Manual UET Tag Installation.”
2. Click the **Copy** button to copy the full UET script.
   
   ![Screenshot 2025-06-29 at 4.58.10 PM](https://kb.feedops.com/hs-fs/hubfs/Screenshot%202025-06-29%20at%204.58.10%20PM.png?width=688&height=518&name=Screenshot%202025-06-29%20at%204.58.10%20PM.png)

### **Step 2: Add the UET Tag to Your Shopify Theme**

1. Log into your **Shopify admin panel**.
2. Go to **Online Store** \> **Themes**.
3. Click **Actions** \> **Edit code** for your active theme.  
   ![Screenshot 2025-06-29 at 4.54.39 PM](https://kb.feedops.com/hs-fs/hubfs/Screenshot%202025-06-29%20at%204.54.39%20PM.png?width=688&height=380&name=Screenshot%202025-06-29%20at%204.54.39%20PM.png)
4. Under the **Layout** folder, select `theme.liquid`.  
   ![Screenshot 2025-06-29 at 5.00.44 PM](https://kb.feedops.com/hs-fs/hubfs/Screenshot%202025-06-29%20at%205.00.44%20PM.png?width=688&height=409&name=Screenshot%202025-06-29%20at%205.00.44%20PM.png)
   
   ### **Step 3: Find the Closing `</head>` Tag**
   
     1. Use **CMD + F (Mac)** or **CTRL + F (Windows)** to open the search bar.
     2. Type `</head>` (be sure to include the forward slash `/`).
        
        > ⚠️ Don't search for `<head>` — that's the opening tag. You must add your script before the **closing** `</head>` tag.
   
    **Step 4: Paste the UET Tag Code**
   
     1. Locate the `</head>` tag.
     2. On the line **immediately above** `</head>`, paste the entire UET tag script you copied earlier.![Screenshot 2025-06-29 at 5.08.07 PM](https://kb.feedops.com/hs-fs/hubfs/Screenshot%202025-06-29%20at%205.08.07%20PM.png?width=688&height=428&name=Screenshot%202025-06-29%20at%205.08.07%20PM.png)
     3. If there's already code above `</head>`, hit **Enter** to create a new empty line and paste your tag there — do **not** overwrite or delete existing code.

### Final Checks Before Saving

🔍 **Double-Check:**

- You added the script **above `</head>`**, not inside or below it.
- You did **not** delete or alter any existing code or brackets (`<`, `>`, `{`, `}`).
- The pasted script starts with `<script>` and ends with `</script>`.

**Save Your Changes:**

- Click **Save** at the top right.![Screenshot 2025-06-29 at 5.13.09 PM](https://kb.feedops.com/hs-fs/hubfs/Screenshot%202025-06-29%20at%205.13.09%20PM.png?width=688&height=189&name=Screenshot%202025-06-29%20at%205.13.09%20PM.png)

#### Need Help?

Reach out to our support team if:

- You're unsure where to paste the code.
- You want help with advanced conversion tracking.
- You see an error after saving.

 

- [FeedOps Toolkit](https://kb.feedops.com/knowledge/feedops-toolkit?hsLang=en#main-content)

    - [Feed Optimization](https://kb.feedops.com/knowledge/feedops-toolkit?hsLang=en#feed-optimization)
    - [Insights](https://kb.feedops.com/knowledge/feedops-toolkit?hsLang=en#insights)
- [Onboarding FeedOps](https://kb.feedops.com/knowledge/onboarding-feedops?hsLang=en#main-content)

    - [Initial Set-Up](https://kb.feedops.com/knowledge/onboarding-feedops?hsLang=en#initial-set-up)
    - [Account & Website Settings](https://kb.feedops.com/knowledge/onboarding-feedops?hsLang=en#account-website-settings)
    - [Supported Platform Guides](https://kb.feedops.com/knowledge/onboarding-feedops?hsLang=en#supported-platform-guides)
- [Troubleshooting](https://kb.feedops.com/knowledge/troubleshooting?hsLang=en)
- [Choosing FeedOps](https://kb.feedops.com/knowledge/choosing-feedops?hsLang=en#main-content)

    - [FeedOps Overview](https://kb.feedops.com/knowledge/choosing-feedops?hsLang=en#feedops-overview)
    - [Help Center Introduction](https://kb.feedops.com/knowledge/choosing-feedops?hsLang=en#help-center-introduction)
- [Using FeedOps](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#main-content)

    - [Google Free Product Listings](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#google-free-product-listings)
    - [FeedOps Optimizations](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#feedops-optimizations)
    - [Google Ads](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#google-ads)
    - [eCommerce Store Connection](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#ecommerce-store-connection)
    - [Google Analytics](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#google-analytics)
    - [Google Merchant Center](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#google-merchant-center)
    - [Facebook Catalog](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#facebook-catalog)
    - [Microsoft Ads](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#microsoft-ads)
- [Website Integration Help](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#main-content)

    - [BigCommerce](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#bigcommerce)
    - [Google Analytics](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#google-analytics)
    - [Magento](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#magento)
    - [Ecwid](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#ecwid)
    - [Shopify](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#shopify)
    - [Magento 2.X](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#magento-2-x)
    - [Neto](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#neto)
    - [OpenCart](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#opencart)
    - [Other](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#other)
    - [Google Merchant Center](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#google-merchant-center)
    - [WooCommerce](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#woocommerce)
    - [Salesforce Commerce Cloud](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#salesforce-commerce-cloud)
    - [Marketplacer](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#marketplacer)
    - [Tracking Conversions and Remarketing Events](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#tracking-conversions-and-remarketing-events)
- [Learning Center](https://kb.feedops.com/knowledge/learning-center?hsLang=en#main-content)

    - [Google Ads](https://kb.feedops.com/knowledge/learning-center?hsLang=en#google-ads)
    - [Google Merchant Center](https://kb.feedops.com/knowledge/learning-center?hsLang=en#google-merchant-center)
- [Muzaara Bing Shopping Feed](https://kb.feedops.com/knowledge/muzaara-bing-shopping-feed?hsLang=en#main-content)

    - [Platform](https://kb.feedops.com/knowledge/muzaara-bing-shopping-feed?hsLang=en#platform)

[![FeedOps ](https://kb.feedops.com/hs-fs/hubfs/60a5a09c9ca6b7064e3fac09_feedops-footer-logo.png?width=322&height=87&name=60a5a09c9ca6b7064e3fac09_feedops-footer-logo.png "FeedOps ")](http://feedops.com)

Copyright © 2026, FeedOps