Just when you thought it was safe to go out!
How could I find out if Ghostery stops these kinds of scripts from running?
The site doesn't seem to specifically address this issue.
If you do a search, there are various recommendations from some very reputable sources.
NoScript blocks them. Dunno about Ghostery. Since it now seems that Ghostery is mining data, itself, I'm even wary of that, now.
For all it's perceived faults, it seems that it does.