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