How do I add Google Analytics to my SharePoint site?

How do I add Google Analytics to my SharePoint site?

Install Google Analytics on SharePoint

  1. Download the solution.
  2. On your site collection root site go to Settings Site Settings Solutions.
  3. Upload and activate the solution.
  4. Open your site with SharePoint designer.
  5. Go to All Files Style Library Google Analytics js.
  6. Check out and edit the ga.js file in advanced mode.

How do I trigger Google Analytics?

Auto-event tracking options

  1. Log into Google Tag Manager.
  2. Select “Tags” from the left-hand side.
  3. Create a new tag and select Universal Analytics as the Tag Type.
  4. Set your Google Analytics Tracking ID.
  5. Choose “Event” for the track type.
  6. Set your Event Category, Action, Label and Values.
  7. Set your triggers as required.

How to use Google Tag Manager for SharePoint?

End Google Tag Manager –> I was able to solve it for a SharePoint Online site collection. Assuming that the Publishing Features are turned on, I: Put all the Google Tag Manager stuff into a dedicated HTML file. Upload the HTML file somewhere like the root Site Assets library. Configure a Content Editor Web Part to render the HTML file.

How do you edit a tag in Google Tag Manager?

To edit a tag: Click a tag in the list and make changes on the “Edit Tag” page. For example, you might update the triggers for when the tag should fire. To delete a tag: Click a tag in the list.

How to create a new account in Tag Manager?

Create a new account and container In Tag Manager, click Accounts Create account. Enter an account name and optionally indicate whether you’d like to share data anonymously with Google and others. Click Continue. Enter a descriptive container name and select the type of content: Web, AMP, Android, or iOS.

How long does it take to get Google Tag Manager?

Save the item and all your modern SharePoint sites on Office 365 will get Google Tag Manager. If this was the first solution globally deployed on your tenant, it may take up to 20 minutes get available.