Modern SharePoint is a powerful platform for creating and managing content, but it can be even more useful with the addition of Google Analytics. By integrating Google Analytics into your SharePoint site, you can gain valuable insights into how users are interacting with your content and make informed decisions about how to improve your site’s performance.
Step 1: Create a Google Analytics Account
The first step in adding Google Analytics to Modern SharePoint is to create a Google Analytics account. If you already have an account, you can skip this step and move on to the next one.
Creating a Google Analytics Account
- Go to the Google Analytics website at https://analytics.google.com/analytics/web/.
- Click on “Sign In & Start” and enter your Google account information.
- If you don’t have a Google account, click on “Create an Account” and follow the prompts to create one.
- Once you’re logged in, click on “Admin” in the top navigation bar.
- Click on “Create Property” and enter your website information. Make sure to select “Web” as the type of property.
- Enter a name for your property and click on “Get Tracking ID.”
- Copy the tracking code that appears on the screen and save it in a safe place. You’ll need this code later when you add Google Analytics to your SharePoint site.
Step 2: Add Google Analytics to Your SharePoint Site
Once you have your tracking code, it’s time to add Google Analytics to your SharePoint site. This can be done by adding a script tag to the head of your page.
Adding Google Analytics to Your SharePoint Site
- Open the SharePoint site you want to add Google Analytics to and go to the “Site Pages” library.
- Click on the page you want to add Google Analytics to and select “Edit” from the menu bar.
- In the ribbon, click on “Insert” and then “Script.”
- Paste your tracking code into the script box and save your changes.
- Repeat this process for any other pages you want to add Google Analytics to.
Step 3: Verify Your Installation
Once you’ve added Google Analytics to your SharePoint site, it’s important to verify that everything is working correctly. You can do this by checking the “Real-Time” report in Google Analytics.
Verifying Your Installation
- Log in to your Google Analytics account and click on “Real-Time” in the left navigation bar.
- Click on “Overview” and look for your SharePoint site in the list of pages being viewed. If you see your site listed, then your installation is working correctly.
Conclusion
By following these steps, you can add Google Analytics to your Modern SharePoint site and gain valuable insights into how users are interacting with your content. This information can help you make informed decisions about how to improve your site’s performance and provide a better user experience for your visitors.