It’s easy enough to encode item IDs (e.g. the ID of a video) with various tracking data in a way that only the website itself can separate them. Decoding can be done at the CDN level, e.g. Cloudfront Functions.
CF functions are cheap, but at scale it's more than an irritant.