added analytics directive