VirtualPath was outside the current application root

After adding the javascript snippet to my page(s), when I try to hit the website, it get an error.

VirtualPath was outside the current application root.

If I comment out the javascript, it seems to work fine. I’ve tried to turn off “Enable Browser Link”, but that doesn’t seem to log any entries for my analytics.