Skip to content

Commit 484a947

Browse files
Tofufukathmath
andauthored
Update google-tag-manager.mdx (#2045)
Adding information about setting api_host for EU/IN data residency for GTM page Co-authored-by: Kathleen Matthews <kathleen.matthews@mixpanel.com>
1 parent a6236e0 commit 484a947

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pages/docs/tracking-methods/integrations/google-tag-manager.mdx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This way, the user doesn't need to worry about initialization; just ensure that
3535

3636
#### Custom Initialization Options
3737

38-
To add initialization options for capabilities like [session replay](https://docs.mixpanel.com/docs/tracking-methods/sdks/javascript#implementation--sampling) (`record_sessions_percent`)or [heatmaps](https://docs.mixpanel.com/docs/tracking-methods/sdks/javascript#heatmaps) (`record_heatmap_data`) to Google Tag Manager:
38+
To add initialization options for capabilities like [Session Replay](https://docs.mixpanel.com/docs/tracking-methods/sdks/javascript#implementation--sampling) (`record_sessions_percent`), [Heatmaps](https://docs.mixpanel.com/docs/tracking-methods/sdks/javascript#heatmaps) (`record_heatmap_data`), Routing data to [EU Servers for EU Data Residency](https://docs.mixpanel.com/docs/tracking-methods/sdks/javascript#eu-data-residency), or Routing data to [IN Servers for India Data Residency](https://docs.mixpanel.com/docs/tracking-methods/sdks/javascript#india-data-residency) to Google Tag Manager:
3939

4040
1\. Add a new tag in GTM and choose the Mixpanel tag type
4141

@@ -45,7 +45,12 @@ To add initialization options for capabilities like [session replay](https://doc
4545

4646
4\. For Initialization, choose Set Options Manually
4747

48-
5\. In the Option key / Option value section, add the relevant key-value pair according to your needs (e.g., `record_heatmap_data` as the key and set a boolean value of `true`)
48+
5\. In the Option key / Option value section, add the relevant key-value pair according to your needs
49+
50+
For example:
51+
- `record_heatmap_data` as the key and set a boolean value of `true`
52+
- `api_host: https://api-eu.mixpanel.com` if your project has EU Data Residency
53+
- `api_host: https://api-in.mixpanel.com` if your project has India Data Residency
4954

5055
6\. For the Triggering section, choose an early GTM lifecycle event like Initialization \- All Pages or Consent Initialization \- All Pages
5156

0 commit comments

Comments
 (0)