From 58b1d6b515a796586334d971356a29500a2abe7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Monnier?= Date: Fri, 4 Jul 2025 15:48:12 +0200 Subject: [PATCH] fix user_id to match GA4 dimension --- template.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template.tpl b/template.tpl index feef869..848a0bb 100644 --- a/template.tpl +++ b/template.tpl @@ -321,8 +321,8 @@ if(!isAuthorizedHost()) { body.data = customData; } - if(data.userId || eventData.userId) { - body.userId = data.userId || eventData.userId; + if(data.userId || eventData.userId || eventData.user_id) { + body.userId = data.userId || eventData.userId || eventData.user_id; } const url = 'https://tag.imagino.com/' + accountKey + '/events';