feat: skip without websiteId

This commit is contained in:
Oleh Astappiev 2024-12-08 21:29:41 +01:00
parent 36b6a7774e
commit 02f9dd951c
No known key found for this signature in database
GPG key ID: 37D7AC22589E9632

View file

@ -117,6 +117,10 @@ func (h *UmamiFeeder) reportEventToUmami(ctx context.Context, event *UmamiPayloa
websiteId = website.ID
h.debug("created website for: %s", website.Domain)
}
if websiteId == "" {
h.error("skip tracking, websiteId is unknown: " + hostname)
return
}
event.body.Payload.Website = websiteId
h.debug("sending tracking request %v %v", event.body, event.headers)