Set up Google Analytics on a Composer site

Note: The instructions in this article refer to Google's Universal Analytics (UA). Google recently released Google Analytics 4 (GA4), which is intended to replace Universal Analytics in 2023. 

Please refer to Set up Google Analytics 4 on a Composer site for instructions on adding a GA4 ID to your site. You may use both UA and GA4 to collect data until July 2023.

To use Google Analytics to analyze data from your users’ behavior on your site, you’ll first want to connect your account with your domain in Composer. Following are instructions for new sites and former Page Manager sites, as well as sites that do not have an account already.

Step 1: Find your tracking ID

New Composer sites

If you already have a Google Analytics account, you’ll want to continue using the same tracking ID (UA-ID) from your previous site. This ensures continuity, because Google Analytics does not support exporting or importing of data.

You can find the UA-ID in the “Property Settings” of your Google Analytics account. Click on the “admin” gear icon in the Google Analytics left menu, then use the dropdown under the “Property” column to select the site’s URL. Click “Property Settings” to find the code under “Tracking Id.”

Property settings link in Google Analytics

If you do not know whether you have an existing UA-ID, you can also find it in your previous homepage’s source code. Right-click on the page and select “View Page Source,” or the equivalent for your browser. Use ctrl+F or command+F and search for “UA-” to find the three-part tracking ID on the page.

Copy this code and proceed to step 2.

Page Manager-to-Composer redesign

If you already have a Page Manager site, your Google Analytics UA-ID is also available in the Site Information. From the top Site Administration toolbar, click Site Information (under the “Site Administration” section). The three-part tracking ID is located in the “Google Analytics” box, labeled “GA Account ID.”


Copy this code and proceed to step 2.

New Google Analytics account

If you do not already have a Google Analytics account, you’ll want to create one to gain valuable insights about your users’ habits on your website. Follow the instructions from Google to set up your account and create a property for your site.

Once you have a UA-ID, copy it and proceed to step 2.

Step 2: Paste into Composer Domain Settings

Once you have found the UA-ID, you can enter it into the Composer Domain Settings.

Click the three-dot menu next to the domain in the Pages menu of Composer, then select “Settings.”

Three-dot menu on domain level

Click on the SEO tab, and paste the UA-ID into the first field, “Google Universal Analytics ID.” Click “Apply” to save the settings.

To verify that it’s working, double-check in Google Analytics that you’re opening the property that matches the UA-ID you just added, and confirm that you can see yourself in the Real-Time Report section of the dashboard.

SEO tab and UA-ID field in Domain Settings

Step 3: Repeat for each domain

If you have a site that is set up with multiple domains, such as a district site, each domain will be listed as its own property and have its own UA-ID. Find the tracking ID for each site in the Google Analytics Property Settings, then paste it into the Composer Domain Settings as detailed above.

Next steps: Track internal site search results

While you’re in Google Analytics, it’s a good time to add in the search query parameter to track users’ site search terms on your Search Results page. Follow the instructions in Track internal site search results in Google Analytics to adjust the settings.

Was this article helpful?
5 out of 6 found this helpful



Please Sign in to leave a comment if you don't see the comment box below.