Skip to content

Stape Integration

Create a Stape sGTM Container

  1. In your Stape dashboard, click sGTM.
  2. Click Create sGTM container.

    Accessing sGTM Dashboard

  3. Enter a Container name (this does not need to match your GTM container name).

  4. Paste the Container Config string copied from GTM.
  5. Select the server location closest to your target audience.
  6. Click Create Container.

    Container Configuration Details

  7. Choose a Stape plan (a free tier is available to start).

  8. Click Continue.

    Selecting a Stape Plan

Server Container URL

Configure Stape Power-Ups

It is essential to set up at least the GEO Headers

Info

Custom Loader is not available for GTAG script deployments.

GEO Headers

GEO Headers

The GEO Headers power-up sends the visitor's geographic location directly to your server-side container. This feature enhances data accuracy for localized tracking and marketing compliance without relying on third-party browser scripts.

  1. In your Stape dashboard, click sGTM
  2. Select your GTM container.
  3. Click the Power-Ups tab.
  4. In the GEO Headers panel, click Use.

    Stape Power-Ups Interface

  5. Enable the feature.

  6. Click Save Changes.

    Enabling GEO Headers

Configure Headers in GTM Server Container

To use these headers, you must map them inside your GTM Server Container as variables.

  1. Open your GTM Server Container.
  2. Navigate to the Variables section.
  3. Locate the pre-configured variables of type Request Header listed in the table below.
  4. Edit each variable and set the Header Name field to match its corresponding value from the table.
  5. Save the changes.
  6. Click Submit in the top-right corner of the GTM dashboard, then click Publish to deploy the configuration changes to your live container.
Variable Name Header Name
HEADER - User / Address / Country Code X-GEO-Country
HEADER - User / Address / State Code X-GEO-Region
HEADER - User / Address / City X-GEO-City
HEADER - User / Address / Postal Code X-GEO-PostalCode