AGFLEX-2 Added admin-only analytics code