The ‘Google Analytics’ widget extension retrieves the Google Analytics data of your entry (if it is published) using the Reporting API and displays the common metrics data (such as Pageviews, New Users) and user behavior (such as Avg. Time on Page) on the sidebar of your entry page.
We have created a step-by-step guide on how to create a Google Analytics widget extension for your entries. You can refer to the Google Analytics extension guide on our documentation site for more info.