If parts of the work can be clearly separated, allocate time to projects according to the tasks actually completed. For shared work that cannot be assigned accurately to one project, use a separate “Overhead” or “Internal work” category.
Define one rule for the whole team and apply it consistently. During analysis, distribute overhead across projects using an agreed basis, such as direct hours. This produces more stable data than assigning the entire task arbitrarily to one client.