Page History
...
- In the Administration section of the Navigation pane, click System Configuration, and then select SharePoint Tree Adaptor.
- Click on your SharePoint Online tenant.
- Click on Download next to Additional Actions to download the tracking code deployment package WSP-Tracking-Install-Script.zip.
Note: The deployment package includes a PowerShell script that deploys the tracking agent wsp solution and JavaScript tracking code on all selected site collections, as well as the modern sites integration app on the App catalog and on all selected site collections and their sub-sites.
SharePoint Online Adaptor - Download Tracking Code Deployment Package
- Right click the downloaded package zip file, select Properties > General and click on "Unblock" before unzipping it.
Open the tracking.txt file and edit the <cardiologserverdnsname> (CardioLog application server/tracking server public DNS name, without the https:// protocol prefix). Verify that it is accessible over the public internet.
Info icon false sourceDomain: '<cardiologserverdnsname>/CardioLogAgent/js/modern',
eventListenerDomain: '<cardiologserverdnsname/CardioLogAgent',
modules: ['survey-and-message-bar'],
statisticsPath: '<cardiologserverdnsname>/CardioLogAgent/ReportDispatcher.aspx'- Run the Run_Script.ps1 script in PowerShell. Make sure the you have the following prerequisites before executing the PowerShell script:
- You must have have PowerShell version 5.1 or higher with the MS Online module installed).
- The credentials of the SharePoint Online global administrator.
- If you are using multi-factor authentication (MFA), make sure you have an app password for Office 365.
Make sure custom scripts are turned on (changes in this setting take up to 24 hours to apply):
Office 365 Admin > Admin Centers > SharePoint Admin Center > Settings > Custom Script > Select Allow in both options
In case a specific site collection does not inherit these settings from SharePoint Central Administration, you can execute the following commands in SharePoint Online Management Shell (replace the placeholders for [company] and [site collection url]):Info icon false $url = "https://[company]-admin.sharepoint.com" $User = Read-Host -Prompt "Enter username for $url" $Password = Read-Host -Prompt 'Enter password' -AsSecureString $credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($User, $Password) $adminContext = New-Object Microsoft.SharePoint.Client.ClientContext($url) $adminContext.Credentials = $credentials $tenant = New-Object Microsoft.Online.SharePoint.TenantAdministration.Tenant($adminContext) $adminContext.Load($tenant) $adminContext.ExecuteQuery() $props = $tenant.GetSitePropertiesByUrl("[site collection url]", $false) $adminContext.Load($props) $adminContext.ExecuteQuery() $DenyAddAndCustomizePagesStatusEnum = [Microsoft.Online.SharePoint.TenantAdministration.DenyAddAndCustomizePagesStatus] $props.DenyAddAndCustomizePages = $DenyAddAndCustomizePagesStatusEnum::Disabled $props.Update() $adminContext.ExecuteQuery()
...