Bottomonia are important probes of the quark-gluon plasma since they are produced at early times and propagate through the medium, mapping its evolution. The production cross sections of the three Y states (1S, 2S, 3S) were measured by CMS in pp and PbPb collisions at 2.76 TeV. A strong suppression is observed in PbPb collisions, by up to a factor of 2 and 10 for the Y(1S) and Y(2S) respectively. The Y(3S) was not observed in PbPb collisions. This suppression was seen to depend on centrality, but not significantly on transverse momentum or rapidity. A surprising dependence of the excited over the ground state ratio on the global event activity was also found in pPb data, as well as in pp data. In all three systems, the yields for the three states are also observed to increase with increasing event activity. In this talk, we will present the final CMS results on bottomonium production in the three collisions systems, together with new results from pp collisions at 5.02 and 7 TeV, and from the high statistics 5.02 TeV PbPb data collected in 2015.