Monday, January 8, 2024
HomeSoftware TestingHow To Add Google Analytics To Sharepoint

How To Add Google Analytics To Sharepoint


Learn to add Google Analytics to SharePoint with our complete step-by-step information. To add Google Analytics to SharePoint, there are some things to contemplate. Firstly, Google Analytics isn’t beneficial for SharePoint as it might violate Google’s phrases of service and compromise knowledge privateness. Nevertheless, when you nonetheless need to proceed, right here’s a step-by-step information:

  1. Enroll or check in to Google Analytics at https://analytics.google.com.
  2. Click on on the Admin cog on the dashboard and below the Admin Tab, click on on ‘+ Create Account’.
  3. Fill within the required fields and uncheck all of the packing containers until you need to share your company data with Google.
  4. Click on ‘Get Monitoring ID’ and replica the monitoring code supplied.
  5. To deploy Google Analytics to SharePoint, decide the model of SharePoint you might be operating.
  6. For SharePoint 2007, 2010, 2013, 2016, and 2019, use Visible Studio to create a SharePoint challenge and add a brand new merchandise referred to as “CustomAction” and a module referred to as “Type Library”. Create a folder construction and add a JavaScript file with the monitoring code.
  7. For SharePoint On-line or SharePoint 2016/2019, use the SharePoint Framework to create an software customizer extension challenge. Edit the grasp web page or use a declarative sandbox answer so as to add the monitoring code.

Be aware that it is suggested to not use Google Analytics in SharePoint as a consequence of potential violations and lack of doc monitoring and site-specific group permissions in Google Analytics.

Step 1: Enroll or check in to Google Analytics

Step one to including Google Analytics to SharePoint is to enroll or check in to your Google Analytics account. When you don’t have an account but, you may create one by visiting the Google Analytics web site at https://analytics.google.com. When you’re on the web site, click on on the Admin cog on the dashboard, and below the Admin Tab, click on on ‘+ Create Account’.

Within the account creation type, fill within the required fields and uncheck all of the packing containers until you need to share your company data with Google. After that, click on ‘Get Monitoring ID’. This may generate a singular monitoring code that you just’ll have to deploy Google Analytics to your SharePoint website.

Deployment strategies for various variations of SharePoint

To deploy Google Analytics to SharePoint, you’ll want to find out the model of SharePoint you might be operating.

SharePoint Model Deployment Technique
SharePoint 2007, 2010, 2013, 2016, 2019 Use Visible Studio to create a SharePoint challenge and add a brand new merchandise referred to as “CustomAction” and a module referred to as “Type Library”. Create a folder construction and add a JavaScript file with the monitoring code.
SharePoint On-line or SharePoint 2016/2019 Use the SharePoint Framework to create an software customizer extension challenge. Edit the grasp web page or use a declarative sandbox answer so as to add the monitoring code.

It’s value noting that utilizing Google Analytics in SharePoint isn’t beneficial as a consequence of potential violations of Google’s phrases of service and the shortage of doc monitoring and site-specific group permissions in Google Analytics. Contemplate these components earlier than continuing with the deployment.

Step 2: Deploy Google Analytics to SharePoint

After getting your Google Analytics account arrange, the following step is to deploy it to your SharePoint website, following the suitable methodology to your SharePoint model. It’s necessary to notice that Google Analytics isn’t beneficial for SharePoint as a consequence of potential violations of Google’s phrases of service and limitations in monitoring paperwork and site-specific permissions. Nevertheless, when you nonetheless need to proceed, right here’s a step-by-step information:

For SharePoint 2007, 2010, 2013, 2016, and 2019:

To deploy Google Analytics to those variations of SharePoint, you will have to make use of Visible Studio to create a SharePoint challenge. Begin by including a brand new merchandise referred to as “CustomAction” and a module referred to as “Type Library”. Create a folder construction throughout the module and add a JavaScript file with the monitoring code.

This methodology permits you to customise the SharePoint website and embrace the Google Analytics monitoring code throughout the JavaScript file. Nevertheless, needless to say this methodology could not present intensive monitoring capabilities and will not be appropriate with future updates to SharePoint.

For SharePoint On-line or SharePoint 2016/2019:

In case you are utilizing SharePoint On-line or SharePoint 2016/2019, it is suggested to make use of the SharePoint Framework (SPFx) to deploy Google Analytics. You possibly can create an software customizer extension challenge inside SPFx and edit the grasp web page to incorporate the monitoring code.

Alternatively, you can too use a declarative sandbox answer so as to add the monitoring code to your SharePoint website. This methodology permits for simpler deployment with out the necessity for customized improvement, however it might have limitations relying in your particular SharePoint configuration.

Keep in mind, whereas it’s attainable to deploy Google Analytics to SharePoint, it isn’t the beneficial method as a consequence of potential violations and limitations in monitoring and permissions. Contemplate exploring different analytics options which might be particularly designed for SharePoint to make sure correct and complete knowledge monitoring.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments