One solution is to add headers that forbid all includes (and therefore all tracking):
Content-Security-Policy:
default-src 'self';
frame-src 'self';
script-src 'self' 'unsafe-inline' 'unsafe-eval';
style-src 'self' 'unsafe-inline';
img-src 'self' data: