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';