I'd say they attempt to track you by having various mechanisms to do so. This distinction is important as to no make this tracking appears imevitable.
you can take measures to prevent them from tracking you, a simple and quite effective one is to disable scripting and use a properly set up blocker such as ublock origin.