# Track Page Views with Google Analytics

Google Analytics is supported out of the box for tracking public page views.

If you haven't done so already, head over to your Google Analytics dashboard and create a new property for your website. Once created, you will obtain a tracking ID, which is either a Google Analytics 4 property, or for legacy configurations, a Universal Analytics property.

Head over to the motif.json configuration file (open search using and type motif.json).
If you are using Google Analytics 4 properties, add an entry named gaMeasurementId, replacing G-XXXXXXXX with your tracking ID:
{  "gaMeasurementId": "G-XXXXXXXX",  "head": ["..."]}
If you are using Universal Analytics properties, add an entry named gaTrackingId, replacing UA-XXXXXXXX with your tracking ID:
{  "gaTrackingId": "UA-XXXXXXXX",  "head": ["..."]}
replacing OPT-XXX with your tracking id. Google Optimize is now enabled across all the public pages of your project.