The referer header behavior changed for https 7+ years ago. As I recall, it can be crippled by the source site (e.g. inbound google traffic).
https://stackoverflow.com/questions/21922143/why-isnt-the-th...
Why this is good for anyone other than Google Analytics is beyond my current understanding.