new analytics code

Signed-off-by: Brandon Ewoldt <bewoldt1@gmail.com>