Sending data from the Google Tag Manager web container to the server container

Written by

Ira Holubovska

Updated Jul 14, 2026 comments
How to use Stape Data Tag and Data Client [Step-by-step guide]

How to send data from the Google Tag Manager web to the server container

Send data from web to server container via Data tag

  1. 1.
  2. 2.
  3. 3.
  4. 4.
  5. 5.
Install the Data Tag template
  1. 1.
  2. 2.
  3. 3.
    1. 3.1.
    2. 3.2.
    3. 3.3.
    4. 3.4.
  4. 4.
  5. 5.
  6. 6.
  7. 7.
Configure the Data Tag for other events
 In this example, all e-commerce events end with _stape
Example of the variable that extracts user data from the Data Layer
  1. 1.
  2. 2.
Download Data Client from the GitHub
  1. 1.
  2. 2.
  3. 3.
  4. 4.
  5. 5.
  6. 6.
Import the Data Client
Open the Clients tab and choose Data Client
Open web and server GTM preview screens and test the setup

How to send data from web to server container via Google Analytics 4

  1. 1.
  2. 2.
  3. 3.
  4. 4.
  5. 5.
  6. 6.
    1. 6.1.
    2. 6.2.
  7. 7.
Create a configuration variable for the server container URL
  1. 1.
  2. 2.
  3. 3.
  4. 4.
  5. 5.
  6. 6.
  7. 7.
  8. 8.
  9. 9.
Create a Google Analytics 4 tag
  1. 1.
  2. 2.
  3. 3.
  4. 4.
  5. 5.
  6. 6.
  7. 7.
  8. 8.
  9. 9.
Example of how to create a GA4 event

Setting up conversion tracking with various platforms

Data Tag use cases

1. Data layer from the web to the server container.

send data from web gtm to Server GTM

2. Sending User Data to Facebook Conversion API.

send user data from web to Server GTM

3. Send custom data from the Web container to any other servers.

4. Store data.

store user data in cookies web google tag manager

5. Retrieve any incoming request.

prices incoming requests in the server container

Conclusion

Want to switch to server-side?

You can do it for free at Stape! Click Try for free and explore the advantages!

Try for free

Written by

Ira Holubovska

Content writer

Ira has 10+ years of digital marketing experience, with the last 5 focused on server-side tracking. She understands how and when it works across various digital marketing scenarios.

Was this article helpful?

Comments

Recommended for you

Turn better tracking into better marketing performance

Try for free