Adding check for local referrer (analytics)