updated gallery and google analytics plugin