---
title: "Double Server for the Same Website"
description: "Using GTM to track data from the same website with two servers If you want to set up two data servers for your website for whatever reason, different configurations, multiple ad accounts, opposite consent modes, you can do so by setting up two data servers for you website. This is done by duplicating your Tracklution tags in GTM and adding the target parameter to your duplicated tags with your second container's Tracklution ID. 1. Start with your standard setup Create a Track…"
slug: "double-server-for-the-same-website"
category_slug: "tracking-guides"
category_name: "Tracking Guides"
order: 3000000033
published_at: "2025-12-16T09:08:31+00:00"
updated_at: "2026-04-21T08:15:02+00:00"
language_code: "en-US"
tags: []
---

## Using GTM to track data from the same website with two servers

If you want to set up two data-servers for your website for whatever reason, different configurations, multiple ad-accounts, opposite consent modes, you can do so by setting up two data-servers for you website. This is done by duplicating your Tracklution tags in GTM and adding the **target** parameter to your duplicated tags with your second container's Tracklution ID.

### 1. Start with your standard setup

Create a Tracklution container and use the****[**Tracklution GTM template**](https://support.tracklution.com/kb/article/7/gtm-template "https://support.tracklution.com/kb/article/7/gtm-template") (or the cHTML method) to track your events as you normally would.
<section class="info-box"><strong>Tip</strong>: Create variables in GTM for your <strong>Tracklution ID</strong>, for your <strong>Tracklution Domain</strong>, and prepare a variable for your <strong>second Tracklution ID</strong>.<br><br>Select <strong>Variables</strong>, under User-Defined Variables click <strong>New</strong> → <strong>Variable Configuration</strong> → <strong>Constant</strong> → <strong>Value</strong>, add your Tracklution ID or Domain, give the GTM variable a name and click <strong>Save</strong>.</section>
### 2. Add a second Tracklution container

1. Create a new Tracklution container.
2. Note the second Tracklution ID (e.g. LS-11111111-2).

### 3. Modify GTM to track events in both containers

In GTM, for each tag you want to use to collect events and data with both containers, copy the tag and add the **target** parameter to the copy.

With the tag you want to copy in view, click the **three dots** in the upper right corner, then click **copy**.

![copy_tag](https://support.tracklution.com/kb/agent/attachment/article/33/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjE4NyIsIm9yZ2lkIjoiMTQ3NzgiLCJpc3MiOiJzdXBwb3J0LnRyYWNrbHV0aW9uLmNvbSJ9.ilfwdpS_a5LWaW2qmQPTv6eoK4Qlpl5H8k5oJrZyRDI)

The parameter is added to your copy by selecting **Custom Parameters** and adding Key: **target** (lower-case) and Value: **your second Tracklution ID** (or the variable containing it). Leave everything else in the copy as-is.

![custom_parameter](https://support.tracklution.com/kb/agent/attachment/article/33/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjE1NSIsIm9yZ2lkIjoiMTQ3NzgiLCJpc3MiOiJzdXBwb3J0LnRyYWNrbHV0aW9uLmNvbSJ9.JTphCfltx-GMmATSgjqqAXqlCiJwMTxCvn8jzaCyyqc)

#### The result should look like this:

![tags_result](https://support.tracklution.com/kb/agent/attachment/article/33/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjE4OCIsIm9yZ2lkIjoiMTQ3NzgiLCJpc3MiOiJzdXBwb3J0LnRyYWNrbHV0aW9uLmNvbSJ9.SocKVuKMnK6_ypSP8N8DSHWJjDxSjV82lqMV1ToiCus)

### Examples using the cHTML method

**OBS**! Unless the main script is hardcoded on your site, with the cHTML method you need to have a tag with the main script triggered on all pages. This tag does **not** need to be duplicated, but if it includes the PageView event, you need one new PageView tag separately with the **target** parameter for your second Tracklution container.

#### To duplicate a PageView:

    <!-- Original tag -->
    <script>
      tlq('track', 'PageView');
    </script>
    
    <!-- Duplication -->
    <script>
      tlq('track', 'PageView', {target: 'LS-11111111-2'});
    </script>

**Tip**: GTM variables can be used in cHTML tags as well. To make this setup more flexible in GTM, you could replace the second Tracklution ID (LS-11111111-2) with a constant variable (e.g. {{Tracklution ID 2}}) containing the value of the second Tracklution ID.

#### Purchase event example (with GTM variables):

    <!-- Original tag -->
    <script>
      tlq('track', 'Purchase', {
        value: {{DLVvalue}},
        currency: '{{DLVcurrency}}',
        transactionId: '{{DLVtransaction_id}}'
      });
    </script>
    <script>
      tlq('set', 'ContactInfo', {
        email: '{{DLVemail}}',
        phoneNumber: '{{DLVphone}}'
      });
    </script>
    
    <!-- Duplication -->
    <script>
      tlq('track', 'Purchase', {
        target: '{{Tracklution ID 2}}',
        value: {{DLVvalue}},
        currency: '{{DLVcurrency}}',
        transactionId: '{{DLVtransaction_id}}'
      });
    </script>
    <script>
      tlq('set', 'ContactInfo', {
        target: '{{Tracklution ID 2}}',
        email: '{{DLVemail}}',
        phoneNumber: '{{DLVphone}}'
      });
    </script>

**A**: Yes, using the cHTML method, both the original and duplicated tracking script can sit in the same tag if you prefer. Be aware that this limits your conditioning logic if you for example would want to use different consent modes for your Tracklution containers.

### Summary

- Create your second Tracklution container and note its ID.
- Create a copy of each GTM tag you want to use to collect events and data with both containers.
- Add the **target** parameter with the second Tracklution ID.

This setup ensures both Tracklution containers receive the same data at the same time. The same procedure could be performed multiple times to add more Tracklution containers.
