modded analytics code