You can enable and disable the Analytics under the Single posts/pages and custom post’s frontend view. If you enable this toggle it will stop showing the Analytics at the frontend.
In order to Enable and Disable the Analytics at Front-End follow these steps
PS: this will not affect the shortcodes on the Front-End