adding federated analytics code