Docs menu · sGTM Variables
Getting Started
Integrations
Server-side GTM
COD Order Protection
Advanced Features
Downloads
Tools & Support
Docs / Server-side GTM
sGTM Variables Setup
Event Data variables to read delayed purchase events in sGTM
For sGTM Container: Create these Event Data variables to read delayed purchase event parameters. Variable Type: Event Data
Essential Variables (Must Create)
| Variable Name | Key Path | Used For |
|---|---|---|
| ED - event_id | event_id | FB CAPI deduplication |
| ED - transaction_id | transaction_id | GA4, FB CAPI, Google Ads |
| ED - value | value | GA4, FB CAPI, Google Ads |
| ED - currency | currency | GA4, FB CAPI, Google Ads |
| ED - content_ids | content_ids | FB CAPI (JSON array) |
| ED - fbp | fbp | FB CAPI |
| ED - fbc | fbc | FB CAPI |
| ED - gclid | gclid | Google Ads |
Facebook CAPI Variables
| Variable Name | Key Path | Description |
|---|---|---|
| ED - content_type | content_type | Always "product" |
| ED - content_name | content_name | Product names combined |
| ED - content_category | content_category | First item category |
| ED - num_items | num_items | Total quantity |
| ED - external_id | external_id | Customer identifier |
| ED - action_source | action_source | "website" |
| ED - event_source_url | event_source_url | Thank you page URL |
| ED - ip_override | ip_override | Customer IP |
| ED - user_agent | user_agent | Customer browser |
| ED - fbclid | fbclid | Facebook Click ID |
GA4 & Google Ads Variables
| Variable Name | Key Path | Description |
|---|---|---|
| ED - ga_client_id | ga_client_id | GA4 Client ID |
| ED - shipping | shipping | Shipping cost |
| ED - tax | tax | Tax amount |
| ED - coupon | coupon | Coupon code |
Other Platform Variables
| Variable Name | Key Path | Platform |
|---|---|---|
| ED - ttclid | ttclid | TikTok Events API |
| ED - msclkid | msclkid | Microsoft Ads |
| ED - is_delayed | is_delayed | Debug flag |
User Data Variables (Enhanced Conversions)
| Variable Name | Key Path | Description |
|---|---|---|
| UP - email | user_data.email | Customer email |
| UP - phone | user_data.phone | Customer phone |
| UP - first_name | user_data.first_name | First name |
| UP - last_name | user_data.last_name | Last name |
| UP - city | user_data.city | City |
| UP - region | user_data.region | State/region |
| UP - postal_code | user_data.postal_code | ZIP code |
| UP - country | user_data.country | Country code |
How to Create Variables in sGTM
- 1. In sGTM, go to Variables → New
- 2. Select Variable Type: Event Data
- 3. Enter the Key Path from the table above
- 4. Name it (e.g., ED - content_ids)
- 5. Save