There is a basic Google Analytics integration built into Backstage. You can enable it by adding the following to your app configuration:
app: googleAnalyticsTrackingId: UA-000000-0
Replace the tracking ID with your own.
For more information, learn about Google Analytics here.
The default behavior is only to send a pageview hit to Google Analytics. To record more, look at the developer documentation here.