ga4-export-fixer 0.4.1-dev.0 → 0.4.1-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
"session_first_traffic_source": {
|
|
160
|
-
"description": "The
|
|
160
|
+
"description": "The data extracted from the collected_traffic_source struct of the session's first event. Similar to the session_traffic_source_last_click but does not include last non-direct attribution. Meaning that sessions that started without a source of traffic are always reported as direct in this field. Can be useful for building custom attribution models.",
|
|
161
161
|
"columns": {
|
|
162
162
|
"manual_campaign_id": "Manual campaign ID (utm_id)",
|
|
163
163
|
"manual_campaign_name": "Manual campaign name (utm_campaign)",
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
"source_platform": "Cross-channel source platform",
|
|
210
210
|
"source": "Cross-channel source",
|
|
211
211
|
"medium": "Cross-channel medium",
|
|
212
|
-
"primary_channel_group": "
|
|
212
|
+
"primary_channel_group": "The highest-level traffic categorization (e.g., Organic Search, Paid Social). Use this as the default dimension for all general 'traffic source' questions",
|
|
213
213
|
"default_channel_group": "Default channel group for the session's last non-direct click"
|
|
214
214
|
}
|
|
215
215
|
},
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"items": "Product-level data array. Unnest with CROSS JOIN UNNEST(items) for item-level analysis. For product revenue and units sold, filter to event_name = 'purchase' and use item_revenue and quantity. Use item_category to filter or group by product category",
|
|
17
17
|
"collected_traffic_source": "Event-level UTM parameters and click identifiers. For session-level attribution, prefer session_first_traffic_source instead",
|
|
18
18
|
"session_first_traffic_source": "First-touch traffic source for the session. Use for session-level acquisition and campaign reporting",
|
|
19
|
-
"session_traffic_source_last_click": "Google-attributed session traffic source. Use
|
|
19
|
+
"session_traffic_source_last_click": "Google-attributed session traffic source. For high-level 'traffic source' reporting, ALWAYS use .cross_channel_campaign.primary_channel_group as the primary dimension. Use .cross_channel_campaign.source as a secondary drill-down when granular detail is required",
|
|
20
20
|
"data_is_final": "Data stability flag. Use WHERE data_is_final = true when you need only stable data that will not change in future refreshes",
|
|
21
21
|
"export_type": "Source export type (daily, intraday, fresh). Use for debugging data freshness or filtering by export source",
|
|
22
22
|
"row_inserted_timestamp": "Pipeline metadata. Use to identify when data was last refreshed or to debug incremental update issues"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"terms": ["traffic source", "channel", "channel group", "source of traffic"],
|
|
45
|
-
"sql": "
|
|
45
|
+
"sql": "Drill-down hierarchy: (1) .primary_channel_group is the default — always use when asked vaguely about traffic sources or channels. (2) .source and .medium — use when asked for source/medium breakdown. (3) .campaign_name — use when asked for campaign-level detail. All under session_traffic_source_last_click.cross_channel_campaign.",
|
|
46
46
|
"dependsOn": ["session_traffic_source_last_click"]
|
|
47
47
|
},
|
|
48
48
|
{
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"field": "session_traffic_source_last_click",
|
|
102
|
-
"note": "Primary field for traffic source analysis.
|
|
102
|
+
"note": "Primary field for traffic source analysis. When a user asks a general or vague question about 'traffic sources' or 'where traffic comes from', DEFAULT to .cross_channel_campaign.primary_channel_group. Only drill down to .source if the user explicitly mentions 'source' or specific site names.",
|
|
103
103
|
"dependsOn": ["session_traffic_source_last_click"]
|
|
104
104
|
},
|
|
105
105
|
{
|