share + revised analytics code