IMHO, an automated test should check if the end result following a certain action was ok.
to intermediately check if a script was loaded or not, is subject for debugging.
not relevant for the test scope
as a tester, you should not worry what the AUT do under the hood.
just that the AUT do the right thing.
for the rest, rise a bug ticket with the AUT developpers.
Basically, some tracking scripts shouldn’t be loaded if the user doesn’t agree to some cookies when first visiting a website so we want to ensure that this functionality is working as expected each time a new user visits the site, it’s vital for GDPR in the Europ.
That’s why I would like to check that in test scenario.