We extend the notion of y-variables (coefficients) in cluster algebras to cluster scattering diagrams (CSDs). Accordingly, we extend the dilogarithm identity associated with a period in a cluster pattern to the one associated with a loop in a CSD. We show that these identities are constructed from and reduced to trivial ones by applying the pentagon identity possibly infinitely many times.