I just did some testing with viewing Googles Analytics in real time. The Filter Bots option seems to filter out PhantomJS.
I use PhantomJS as part of BackStopJS - but I believe that they also use the PhantomJS stock.
Before hacking workarounds, as I was going to, check if you are all filtered out.
Another solution that I came across, if this does not work for you, was to block Google Analytics on your test machine with:
127.0.0.1 www.google-analytics.com 127.0.0.1 google-analytics.com
Patabugen
source share