There are any number of things you can have that are not technically illegal to acquire or possess per se, but would almost certainly be illegal to use in any expected capacity. I think it's reasonable to describe those as "almost illegal". Google Analytics is, apparently, in that category.