def METHOD_NAME(user, unseen_notifications_count):
    """
    Emit an event when a notification tray is opened.
    """
    tracker.emit(
        NOTIFICATION_TRAY_OPENED,
        {
            'user_id': user.id,
            'unseen_notifications_count': unseen_notifications_count,
        }
    )