added analytics codes