I think I'd prefer this in the modules/analytics directory alongside all the other beacon stuff