---
title: How to install the Serverside Hybrid Universal Integration script in Google Tag Manager
description: Follow the steps below to install the Serverside Hybrid Universal Integration script in Google Tag Manager.
---

[Skip to content](https://knowledge.profitmetrics.io/how-to-set-up-serverside-hybrid-universal-integration-through-google-tag-manager#main-content)

[![ProfitMetrics logo black version](https://knowledge.profitmetrics.io/hs-fs/hubfs/pm_logotype_blue.png?width=193&height=28&name=pm_logotype_blue.png)](https://knowledge.profitmetrics.io/?hsLang=en)

Open main navigation

Close main navigation

- [Contact Support](https://knowledge.profitmetrics.io/kb-ticket/new)

[Contact Support](https://knowledge.profitmetrics.io/kb-ticket/new?hsLang=en)

 How can we help you?

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

1. [Knowledge base](https://knowledge.profitmetrics.io/?hsLang=en)
2. [E-commerce Platforms](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en)
3. [Other Platforms](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#other-platforms)

# How to install the Serverside Hybrid Universal Integration script in Google Tag Manager

## Follow the steps below to install the Serverside Hybrid Universal Integration script in Google Tag Manager.

The ProfitMetrics Serverside Hybrid Universal Integration is a universal integration that allows for ProfitMetrics to be implemented into any e-commerce platform that is not supported natively. The integration consists of two parts. Part 1 of the integration refers to the sending of orders to ProfitMetrics according to our documentation. Part 2 is to implement the tracking script to capture statistical and marketing-related tracking parameters from the browser and pair these with the orders. How to install the Serverside Hybrid Universal Integration Tracking script through Google Tag Manager.

**Do you want to do it manually?**  
[How to install the Serverside Hybrid Universal Integration script.](https://knowledge.profitmetrics.io/how-to-install-the-serverside-hybrid-universal-integration-script?hsLang=en)

**See this article if you haven't built your integration with ProfitMetrics yet:** [Sending orders to profitmetrics serverside](https://knowledge.profitmetrics.io/how-to-setup-serverside-hybrid-universal-integration?hsLang=en#Part1)

---

#### Instructions

<https://knowledge.profitmetrics.io/how-to-set-up-serverside-hybrid-universal-integration-through-google-tag-manager#part1>Part 1: [Install the Tag from the template gallery](https://knowledge.profitmetrics.io/how-to-set-up-serverside-hybrid-universal-integration-through-google-tag-manager#part1)

<https://knowledge.profitmetrics.io/how-to-set-up-serverside-hybrid-universal-integration-through-google-tag-manager#part2>Part 2: [Configure the tag](https://knowledge.profitmetrics.io/how-to-set-up-serverside-hybrid-universal-integration-through-google-tag-manager#part2)

---

### Part 1: Install the Tag from the template gallery

1. Go to [https://tagmanager.google.com/](https://tagmanager.google.com/)<https://tagmanager.google.com/>
2. Click **Tags  
   ![Add ProfitMetrics Server-Side Hybrid Universal Tag to Workspace - Step 2](https://knowledge.profitmetrics.io/hs-fs/hubfs/Add%20ProfitMetrics%20Server-Side%20Hybrid%20Universal%20Tag%20to%20Workspace%20-%20Step%202.png?width=655&height=366&name=Add%20ProfitMetrics%20Server-Side%20Hybrid%20Universal%20Tag%20to%20Workspace%20-%20Step%202.png)**
3. Click **New  
   ![Add ProfitMetrics Server-Side Hybrid Universal Tag to Workspace - Step 5](https://knowledge.profitmetrics.io/hs-fs/hubfs/Add%20ProfitMetrics%20Server-Side%20Hybrid%20Universal%20Tag%20to%20Workspace%20-%20Step%205.png?width=655&height=366&name=Add%20ProfitMetrics%20Server-Side%20Hybrid%20Universal%20Tag%20to%20Workspace%20-%20Step%205.png)**
4. Click **"Tag Configuration"![Add ProfitMetrics Server-Side Hybrid Universal Tag to Workspace - Step 6](https://knowledge.profitmetrics.io/hs-fs/hubfs/Add%20ProfitMetrics%20Server-Side%20Hybrid%20Universal%20Tag%20to%20Workspace%20-%20Step%206.png?width=655&height=366&name=Add%20ProfitMetrics%20Server-Side%20Hybrid%20Universal%20Tag%20to%20Workspace%20-%20Step%206.png)**
5. Click **"Discover more tag types in the Community Template Gallery![Add ProfitMetrics Server-Side Hybrid Universal Tag to Workspace - Step 7](https://knowledge.profitmetrics.io/hs-fs/hubfs/Add%20ProfitMetrics%20Server-Side%20Hybrid%20Universal%20Tag%20to%20Workspace%20-%20Step%207.png?width=655&height=366&name=Add%20ProfitMetrics%20Server-Side%20Hybrid%20Universal%20Tag%20to%20Workspace%20-%20Step%207.png)**
6. Search for **"ProfitMetrics" and click "ProfitMetrics - Serverside Hybrid Universal Integration - Script"![Add ProfitMetrics Server-Side Hybrid Universal Tag to Workspace - Step 16](https://knowledge.profitmetrics.io/hs-fs/hubfs/Add%20ProfitMetrics%20Server-Side%20Hybrid%20Universal%20Tag%20to%20Workspace%20-%20Step%2016.png?width=688&height=385&name=Add%20ProfitMetrics%20Server-Side%20Hybrid%20Universal%20Tag%20to%20Workspace%20-%20Step%2016.png)**
7. Click**"Add to workspace"![Add ProfitMetrics Server-Side Hybrid Universal Tag to Workspace - Step 17](https://knowledge.profitmetrics.io/hs-fs/hubfs/Add%20ProfitMetrics%20Server-Side%20Hybrid%20Universal%20Tag%20to%20Workspace%20-%20Step%2017.png?width=688&height=385&name=Add%20ProfitMetrics%20Server-Side%20Hybrid%20Universal%20Tag%20to%20Workspace%20-%20Step%2017.png)**
8. Click **"Add"  
   ![Add ProfitMetrics Server-Side Hybrid Universal Tag to Workspace - Step 18](https://knowledge.profitmetrics.io/hs-fs/hubfs/Add%20ProfitMetrics%20Server-Side%20Hybrid%20Universal%20Tag%20to%20Workspace%20-%20Step%2018.png?width=688&height=385&name=Add%20ProfitMetrics%20Server-Side%20Hybrid%20Universal%20Tag%20to%20Workspace%20-%20Step%2018.png)**

### Part 2: Configure the tag

1. In the **"Public ID"** field, input the 16 character **Public ID** found in ProfitMetrics \> Websites  
   ![Add ProfitMetrics Server-Side Hybrid Universal Tag to Workspace - Step 44](https://knowledge.profitmetrics.io/hs-fs/hubfs/Add%20ProfitMetrics%20Server-Side%20Hybrid%20Universal%20Tag%20to%20Workspace%20-%20Step%2044.png?width=688&height=385&name=Add%20ProfitMetrics%20Server-Side%20Hybrid%20Universal%20Tag%20to%20Workspace%20-%20Step%2044.png)
2. In the "*Email input CSS selector*" field, input the CSS selector of all available email input fields on your website. We recommend as many as possible. These can include Checkout, LogIn, Account Signup, Newsletter signup, ect.
   
   *NOTE: If you don't know what a CSS selector is, we recommend using the Chrome extension [https://selectorgadget.com/](https://selectorgadget.com/) to easily click and get the CSS selector of any input field containing the users email.*
3. In the **"*Customer Email*"** field, insert a variable containing the customer's email. You essentially have 3 options based on the data available to you. If you do not have such a variable, you might need to consult your developer. We have outlined the three most common scenarios below 
     1. **Use an existing variable** if you already have one for the customer's email.  
        ![Create Tag Management Variable for Email Field in Google Tag Manager - Step 11](https://knowledge.profitmetrics.io/hs-fs/hubfs/Create%20Tag%20Management%20Variable%20for%20Email%20Field%20in%20Google%20Tag%20Manager%20-%20Step%2011.png?width=622&height=348&name=Create%20Tag%20Management%20Variable%20for%20Email%20Field%20in%20Google%20Tag%20Manager%20-%20Step%2011.png)
     2. **Create a new Data Layer variable** if the customer's email is available in the Data Layer.  
        ![Step-by-Step Guide\_ Creating a Custom JavaScript Variable in Google Tag Manager - Step 37](https://knowledge.profitmetrics.io/hs-fs/hubfs/Step-by-Step%20Guide_%20Creating%20a%20Custom%20JavaScript%20Variable%20in%20Google%20Tag%20Manager%20-%20Step%2037.png?width=688&height=385&name=Step-by-Step%20Guide_%20Creating%20a%20Custom%20JavaScript%20Variable%20in%20Google%20Tag%20Manager%20-%20Step%2037.png)  
        c - **Create a DOM Element variable** if the customer email is visible on the order confirmation page and can be identified using a CSS selector.  
        ![Step-by-Step Guide\_ Creating a Custom JavaScript Variable in Google Tag Manager - Step 25](https://knowledge.profitmetrics.io/hs-fs/hubfs/Step-by-Step%20Guide_%20Creating%20a%20Custom%20JavaScript%20Variable%20in%20Google%20Tag%20Manager%20-%20Step%2025.png?width=688&height=385&name=Step-by-Step%20Guide_%20Creating%20a%20Custom%20JavaScript%20Variable%20in%20Google%20Tag%20Manager%20-%20Step%2025.png)  
        d - Select any other variable type that can extract the customer's email
        
        *NOTE: you might need to involve a developer if the customer email is not available anywhere.*
4. The **"*Consent Control*"** dropdown, is set by default to listen for Google Consent Mode and set the marketing and statistics consent in ProfitMetrics accordingly. If you need to control consent using your own custom variables, you can select "*Custom*". If you wish to ignore consent completely, select "*Deactivate*". The script will automatically respect **Cookiebot.com and Cookieinformation.com**
5. Click **"Triggering"  
   ![Creating a Custom Trigger for ProfitMetrics - Serverside Hybrid Universal Integration - Step 7-1](https://knowledge.profitmetrics.io/hs-fs/hubfs/Creating%20a%20Custom%20Trigger%20for%20ProfitMetrics%20-%20Serverside%20Hybrid%20Universal%20Integration%20-%20Step%207-1.png?width=688&height=385&name=Creating%20a%20Custom%20Trigger%20for%20ProfitMetrics%20-%20Serverside%20Hybrid%20Universal%20Integration%20-%20Step%207-1.png)**
6. Select **"DOM Ready"** to make the script fire once all pages are loaded.  
   ![Screenshot 2024-06-19 at 9.34.04 AM](https://knowledge.profitmetrics.io/hs-fs/hubfs/Screenshot%202024-06-19%20at%209.34.04%20AM.png?width=688&height=200&name=Screenshot%202024-06-19%20at%209.34.04%20AM.png)
7. **OPTIONAL:** Add another trigger for **"consent update", "cookie update"** or any other event related to the client's cookie consent banner updating consent.
8. Click **Save**  
   ![Creating a Custom Trigger for ProfitMetrics - Serverside Hybrid Universal Integration - Step 57](https://knowledge.profitmetrics.io/hs-fs/hubfs/Creating%20a%20Custom%20Trigger%20for%20ProfitMetrics%20-%20Serverside%20Hybrid%20Universal%20Integration%20-%20Step%2057.png?width=688&height=385&name=Creating%20a%20Custom%20Trigger%20for%20ProfitMetrics%20-%20Serverside%20Hybrid%20Universal%20Integration%20-%20Step%2057.png)
9. Click **Save** again to confirm the name of the tag  
   ![Creating a New Tag and Trigger with Google Tag Manager - Step 9](https://knowledge.profitmetrics.io/hs-fs/hubfs/Creating%20a%20New%20Tag%20and%20Trigger%20with%20Google%20Tag%20Manager%20-%20Step%209.png?width=688&height=385&name=Creating%20a%20New%20Tag%20and%20Trigger%20with%20Google%20Tag%20Manager%20-%20Step%209.png)

**Thats it.** You are now ready to publish the changes

 

- [Getting Started](https://knowledge.profitmetrics.io/getting-started?hsLang=en#main-content)

    - [Learn the Basics](https://knowledge.profitmetrics.io/getting-started?hsLang=en#learn-the-basics)
    - [Prepare for Onboarding](https://knowledge.profitmetrics.io/getting-started?hsLang=en#prepare-for-onboarding)
    - [Account Setup](https://knowledge.profitmetrics.io/getting-started?hsLang=en#account-setup)
- [E-commerce Platforms](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#main-content)

    - [Shopify](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#shopify)
    - [WooCommerce](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#woocommerce)
    - [Magento](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#magento)
    - [PrestaShop](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#prestashop)
    - [BigCommerce](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#bigcommerce)
    - [Shopware](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#shopware)
    - [DanDomain & Related](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#dandomain-related)
    - [Universal Integration (Clientside)](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#universal-integration-clientside)
    - [Universal Integration (Server-side Hybrid)](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#universal-integration-server-side-hybrid)
    - [Other Platforms](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#other-platforms)
    - [Developer Documentation](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#developer-documentation)
- [Ad Channels](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#main-content)

    - [Google Ads](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#google-ads)
    - [Meta (Facebook/Instagram)](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#meta-facebook-instagram)
    - [Microsoft Bing Ads](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#microsoft-bing-ads)
    - [Google Analytics 4](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#google-analytics-4)
    - [Partner-ads](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#partner-ads)
    - [Other Channel Configuration](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#other-channel-configuration)
- [Tracking & Conversion Setup](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#main-content)

    - [Overview](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#overview)
    - [Conversion Booster for Google Ads](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#conversion-booster-for-google-ads)
    - [Conversion Booster for Meta](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#conversion-booster-for-meta)
    - [Conversion Booster Custom Pixels](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#conversion-booster-custom-pixels)
    - [Enhanced Conversions](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#enhanced-conversions)
- [Shopping Booster](https://knowledge.profitmetrics.io/shopping-booster?hsLang=en#main-content)

    - [Overview & Setup](https://knowledge.profitmetrics.io/shopping-booster?hsLang=en#overview-setup)
    - [Supplemental Feeds](https://knowledge.profitmetrics.io/shopping-booster?hsLang=en#supplemental-feeds)
    - [Campaigns & Labels](https://knowledge.profitmetrics.io/shopping-booster?hsLang=en#campaigns-labels)
    - [Troubleshooting](https://knowledge.profitmetrics.io/shopping-booster?hsLang=en#troubleshooting)
- [Product Feed & Costs](https://knowledge.profitmetrics.io/product-feed-costs?hsLang=en#main-content)

    - [Product Feed](https://knowledge.profitmetrics.io/product-feed-costs?hsLang=en#product-feed)
    - [Shipping & Payment Costs](https://knowledge.profitmetrics.io/product-feed-costs?hsLang=en#shipping-payment-costs)
    - [Expenses](https://knowledge.profitmetrics.io/product-feed-costs?hsLang=en#expenses)
- [Dashboard, Orders & Reporting](https://knowledge.profitmetrics.io/dashboard-orders-reporting?hsLang=en#main-content)

    - [Dashboard & Orders](https://knowledge.profitmetrics.io/dashboard-orders-reporting?hsLang=en#dashboard-orders)
    - [Looker Studio](https://knowledge.profitmetrics.io/dashboard-orders-reporting?hsLang=en#looker-studio)
    - [Google BigQuery](https://knowledge.profitmetrics.io/dashboard-orders-reporting?hsLang=en#google-bigquery)
- [Account & Billing](https://knowledge.profitmetrics.io/account-billing?hsLang=en#main-content)

    - [Users & Access](https://knowledge.profitmetrics.io/account-billing?hsLang=en#users-access)
    - [Billing & Invoices](https://knowledge.profitmetrics.io/account-billing?hsLang=en#billing-invoices)
- [Privacy & Consent](https://knowledge.profitmetrics.io/privacy-consent?hsLang=en#main-content)

    - [GDPR](https://knowledge.profitmetrics.io/privacy-consent?hsLang=en#gdpr)
    - [Consent Management Platforms](https://knowledge.profitmetrics.io/privacy-consent?hsLang=en#consent-management-platforms)
    - [Google Consent Mode](https://knowledge.profitmetrics.io/privacy-consent?hsLang=en#google-consent-mode)
- [For Agencies](https://knowledge.profitmetrics.io/for-agencies?hsLang=en#main-content)

    - [Getting Started as an Agency](https://knowledge.profitmetrics.io/for-agencies?hsLang=en#getting-started-as-an-agency)
    - [Agency Certification](https://knowledge.profitmetrics.io/for-agencies?hsLang=en#agency-certification)
- [Shopify](https://knowledge.profitmetrics.io/shopify?hsLang=en)
- [PrestaShop](https://knowledge.profitmetrics.io/prestashop?hsLang=en)
- [Google Ads](https://knowledge.profitmetrics.io/google-ads?hsLang=en#main-content)

    - [troubleshoot](https://knowledge.profitmetrics.io/google-ads?hsLang=en#troubleshoot)
- [Meta (Facebook / Instagram)](https://knowledge.profitmetrics.io/meta-facebook-instagram?hsLang=en)
- [Uncategorized](https://knowledge.profitmetrics.io/uncategorized?hsLang=en)
- [Billing](https://knowledge.profitmetrics.io/billing?hsLang=en)
- [Google Sheets](https://knowledge.profitmetrics.io/google-sheets?hsLang=en)
- [Account](https://knowledge.profitmetrics.io/account?hsLang=en)
- [Ideal Shop](https://knowledge.profitmetrics.io/ideal-shop?hsLang=en)

[![ProfitMetrics logo black version](https://knowledge.profitmetrics.io/hs-fs/hubfs/pm_logotype_blue.png?width=193&height=28&name=pm_logotype_blue.png "ProfitMetrics logo black version")](https://profitmetrics.io)

<https://www.facebook.com/ProfitMetrics/> <https://podcasts.apple.com/> [mailto:support@profitmetrics.io](mailto:support@profitmetrics.io)

Copyright © 2026, ProfitMetrics ApS