I do that, plus a little more (page being closed), with an identifier in session storage. If doNotTrack is turned on, the session storage is skipped.
I do not have a consent banner, and I do not believe that I need one.
I do not have a consent banner, and I do not believe that I need one.