#364 fixed minor bugs with dimension switching
#364 Added google tracking based on env vars