attempt at adding custom analytics