Added support for checking the referrer

This prevents Bounceback from determining that this is the first
pageview for the visitor if they came from the same domain.