The configuration contains a few simple steps that walk you through setting up Augmented Analytics.
Augmented Analytics Configuration Screen
In order to display the Augmented Analytics reports in SharePoint, select which site collections you would like to integrate with and display the reports on.
The Augmented Analytics reports are only available on sites once the tracking code is deployed for them in the "Add the Augmented Analytics Tracking Code to your Sites" step.
You can go back and add more sites or remove sites from your selection at any point.
Note: The number of site collections available for selection in your subscription is limited (by default, the quota is 25% of your total SharePoint site collections).
Please note that the integration process for large site collections may take a few hours up to a few weeks, depending on the environment size.
In this step, you can grant access to Augmented Analytics reports to specific users and groups and define the sites where they can view these reports.
This step allows you to add the JavaScript tracking code to each of your sites.
Select one of the following options to add the tracking code to specific sites or deploy it on all selected site collections and their subsites automatically.
Select this option to add the tracking code to all selected sites (in "Choose Sites to Integrate with" step) automatically using an App:
Note: Use this method for installing the tracking code on all selected site collections, including automatically enabling it for newly created subsites under the selected site collections.
Select Automatically track all subsites including newly created ones in order to automatically enable tracking for newly created subsites under the selected site collections (in "Choose Sites to Integrate with" step).
Note: SharePoint Apps (Add-Ins) have been deprecated by Microsoft and will soon stop functioning. We strongly recommend using a Microsoft Entra ID App.
https://<Admin Center>/_layouts/15/
AppRegNew.aspx
(e.g. https://company-admin.sharepoint.com/_layouts/15/AppRegNew.aspx).https://<Admin Center>/_layouts/15/
AppInv.aspx
(e.g. https://company-admin.sharepoint.com/_layouts/15/AppInv.aspx).Paste the client ID into the App Id field. Click Lookup. The existing values for Title, App Domain and Redirect URL should appear.
Enter the following XML into the App's Permission Request XML field to specify required permissions. Then click Create.
<AppPermissionRequests AllowAppOnlyPolicy= "true" > </AppPermissionRequests> |
You will be prompted to approve permissions for the app. Click Trust It.
Once the App is created, return to the Augmented Analytics configuration screen and enter the details of the Client ID and Client Secret in the "Add the Augmented Analytics Tracking Code to your Sites" step.
Select Automatically track all subsites including newly created ones in order to automatically enable tracking for newly created subsites under the selected site collections (in "Choose Sites to Integrate with" step).
Execute the following PowerShell commands with the SharePoint Online Global Administrator account.
Edit the "Client ID" and use the Client ID value from the Augmented Analytics configuration screen in "Add the Augmented Analytics Tracking Code to your Sites" step.
Connect-MsolService $clientId = "Client ID" $keys = Get-MsolServicePrincipalCredential -AppPrincipalId $clientId $keys Remove-MsolServicePrincipalCredential -KeyIds $keys.KeyId -AppPrincipalId $clientId |
In the same PowerShell window, execute the following PowerShell commands in order to generate a new client secret.
$bytes = New-Object Byte[] 32 $rand = [System.Security.Cryptography.RandomNumberGenerator]::Create() $rand.GetBytes($bytes) $rand.Dispose() $newClientSecret = [System.Convert]::ToBase64String($bytes) $dtStart = [System.DateTime]::Now $dtEnd = $dtStart.AddYears( 1 ) New-MsolServicePrincipalCredential -AppPrincipalId $clientId -Type Symmetric -Usage Sign -Value $newClientSecret -StartDate $dtStart -EndDate $dtEnd New-MsolServicePrincipalCredential -AppPrincipalId $clientId -Type Symmetric -Usage Verify -Value $newClientSecret -StartDate $dtStart -EndDate $dtEnd New-MsolServicePrincipalCredential -AppPrincipalId $clientId -Type Password -Usage Verify -Value $newClientSecret -StartDate $dtStart -EndDate $dtEnd $newClientSecret |
Copy the new client secret value and update it in the Augmented Analytics configuration screen in the "Add the Augmented Analytics Tracking Code to your Sites" step and click Save.
Select this option to add the tracking code to all selected site collections (in "Choose Sites to Integrate with" step) automatically using a PowerShell script.
Note: It is required to execute the PowerShell script every time you create new sites under the selected site collections in order to enable tracking for them.
Select this option to add the tracking code to specific sites manually.
Connect to SharePoint Online Admin Center with the SharePoint Online Global Administrator account:
Connect-SPOService -Url https: //company-admin.sharepoint.com |
Get the current value of the Custom Scripts setting DenyAddAndCustomizePages for each site collection you wish to monitor and for your App Catalog:
Get-SPOsite https: //company.sharepoint.com | Select DenyAddAndCustomizePages |
If the current value of DenyAddAndCustomizePages is Enabled, set it to Disabled:
Set-SPOsite https: //company.sharepoint.com -DenyAddAndCustomizePages 0 |
Disconnect-SPOService |
Once the solution is installed, return to the Augmented Analytics configuration screen and click Copy script to copy the JavaScript tracking code.
Browse to CardioLog Analytics Integration solution configuration page. The page should be found at the following address (replace the site collection root URL https://company.sharepoint.com/sites/site with yours): https://company.sharepoint.com/sites/site/CardioLogAnalytics/Configuration.2.0.8.0.aspx
Paste the tracking code copied from the "Add the Augmented Analytics Tracking Code to your Sites" step and click OK.
In order to track SharePoint Online modern sites and pages, install the Tracking Agent App:
Click CardioLog Analytics Tracking Agent App for modern sites to download the Tracking Agent App.
Upload the CardioLogTrackingAgentAddin.sppkg app to the SharePoint Admin apps > App Catalog > Apps for SharePoint > New.
Click Deploy (do NOT select "Make this Solution available to all sites in the organization")
Add the App to your site collection and to all of its subsites under Site Contents > New App
Click on Apps from your organization and click CardioLog Tracking Agent (it will be installed automatically)
After the installation is complete, revert the changes performed in step 3 (if any) and disable custom scripts.
Connect-SPOService -Url https: //company-admin.sharepoint.com Set-SPOsite https: //company.sharepoint.com -DenyAddAndCustomizePages 1 Disconnect-SPOService |
Select this option to inject the tracking code manually to your site pages.