You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 23 Current »

The configuration contains a few simple steps that walk you through setting up CardioLog Engage.


CardioLog Engage Configuration Screen

Step 1: Choose Sites to Integrate with

In order to use the In-App Messages channel (pop-up messages in SharePoint) and target users based on their past behavior (such as pages they've visited), select which site collections you would like to integrate with. Sites are only available for use once the tracking code is deployed for them in the "Add the CardioLog Tracking Code to your Sites" step.

  1. Click Connect.
    Note:
     A global administrator account is required in order to consent to the permissions required to read items from all site collections and read users' full profiles. 



  2. Click Accept to approve the required permissions.
    Note: An App will be created in your Azure Active Directory. It may take up to 24 hours for changes to take effect.
  3. With this section expanded, you should see all of your available SharePoint Online site collections.


    CardioLog Engage Configuration Screen: Step 1

  4. Select all the sites you would like to integrate with.
  5. You can also search for site collections by typing in their name in the search bar.
  6. Select the button next to each site you would like to integrate with.

  7. In order to stop integrating with a specific site, but keep history data for it in usage reports, click on the folder icon next to it in order to archive it. 

  8. Click Save to confirm your selection.

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.

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.


Step 2: Choose User Attributes

In order to send campaigns to specific user segments based on their organizational information (department, office, etc.), select which user profile attributes you would like to target users by. This information will be taken from SharePoint user profiles. If you have created custom profile properties you can also use them.
It is recommended to select segmented attributes like Department, Office, Country, and Job Title.
Note: Make sure that the default privacy setting for the selected attribute is set to Everyone (and not "Only Me") in SharePoint Central Administration > User Profiles > Manage User Properties > Policy Settings.

(question) What are SharePoint Profiles?

  1. Using the search bar, enter the name of any property you would like to find and include.

  2. Select the button next to each user property you would like to include.


    CardioLog Engage Configuration Screen: Step 2 - Choose User Attributes

  3. In case Personal Identifiable Information (PII) Concealment is enabled, hover over the user property you would like to conceal and click the gear icon. 


    Step 2 - Choose User Attributes - Configure PII Concealment 

    You will have the following options to choose from:

    • Unconcealed: Data for user profile attribute values is visible.
    • Concealed: Data for user profile attribute values is concealed for enhanced security.
    • Partially Concealed: Data for user profile attribute values is concealed only for groups with a size below the selected threshold. Partial concealment allows targeting and reporting on broader groups without compromising the privacy of individuals within smaller, potentially identifiable groups.


    Step 2 - Choose User Attributes - PII Concealment Options


  4. Click Apply after selecting the concealment option.

  5. Click Save to confirm your selection.

Properties may be added or removed at any time to accommodate your needs.

Step 3: Add The CardioLog Tracking Code To Your Sites

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.

Note: If you would like to host the tracking code on a private CDN, please fill out the CDN details in the Advanced Settings before you proceed with adding the tracking code using one of the following options.

Install the tracking code automatically using a SharePoint App (recommended)

Select this option to add the tracking code to all selected sites (in "Choose Sites to Integrate with" step) automatically using a SharePoint App.

Note: This is the recommended method for installing the tracking code on all selected site collections, including automatically enabling it for newly created subsites under the selected site collections. 

Create a SharePoint App
  1. Login to SharePoint with the Global Administrator account.
  2. Navigate to https://<Admin Center>/_layouts/15/AppRegNew.aspx (e.g. https://company-admin.sharepoint.com/_layouts/15/AppRegNew.aspx).
  3. Create a 'full-trust' app with the following details:
    1. Client ID and Secret - click Generate to automatically create a client ID and secret and copy these values.
    2. Title - CardioLog Analytics Tracking Deployment
    3. App Domain - localhost
    4. Redirect URI - https://localhost
  4. Navigate to https://<Admin Center>/_layouts/15/AppInv.aspx (e.g. https://company-admin.sharepoint.com/_layouts/15/AppInv.aspx).
  5. Paste the client ID into the App Id field. Click Lookup. The existing values for Title, App Domain and Redirect URL should appear.

  6. Enter the following XML into the App's Permission Request XML field to specify required permissions. Then click Create.

    <AppPermissionRequests AllowAppOnlyPolicy="true">
        <AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" />
        <AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" />
        <AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="FullControl" />
    </AppPermissionRequests>
  7. You will be prompted to approve permissions for the app. Click Trust It.

  8. Once the App is created, return to the CardioLog Engage configuration screen and enter the details of the Client ID and Client Secret in the "Add the CardioLog Tracking Code to your Sites" step.

  9. 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 Track" step).

  10. Select Notify me when client secret expires or is not working in order to receive an email alert to the specified email address. Follow these steps in order to renew the SharePoint App client secret if needed.
  11. Click Save.
  12. Click Install Tracking to install the tracking code on all selected site collections and their subsites.



    Note: This step may take a while to complete, depending on the amount of selected sites. Follow the installation progress on the screen.



  13. Click View installation report to view a detailed report of the installation progress. Click the top left down arrow icon to export the report to CSV.

Renew SharePoint App Client Secret
  1. Execute the following PowerShell commands with the SharePoint Online Global Administrator account. 

  2. Edit the "Client ID" and use the Client ID value from the CardioLog Engage configuration screen in "Add the CardioLog Tracking Code to your Sites" step. 

    Connect-MsolService
    $clientId = "Client ID"
    $keys = Get-MsolServicePrincipalCredential -AppPrincipalId $clientId -ReturnKeyValues false
    $keys
    Remove-MsolServicePrincipalCredential -KeyIds $keys.KeyId -AppPrincipalId $clientId
  3. 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
  4. Copy the new client secret value and update it in the CardioLog Engage configuration screen in the "Add the CardioLog Tracking Code to your Sites" step and click Save.

Install the tracking code automatically using a PowerShell script 

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.

  1. Click CardioLog Analytics Tracking Deployment package to download the deployment package from the "Add the CardioLog Tracking Code to your Sites" step in the Configuration page.
    The package includes a PowerShell script that deploys the tracking agent wsp solution, modern sites integration app and the Java Script tracking code on all selected site collections.
  2. Right click the downloaded package zip file, select Properties > General and click on "Unblock" before unzipping it.
  3. Execute the Run_Script.ps1 script in Windows PowerShell (do not use Windows PowerShell ISE version). Make sure to close all browser windows on your machine before executing the script.
    Note: You must have the MS Online module installed and the credentials of the SharePoint Online global administrator.

Install the tracking code manually

Select this option to add the tracking code to specific sites manually.

  1. Click CardioLog Analytics Tracking solution to download the deployment package from the "Add the CardioLog Tracking Code to your Sites" step in the Configuration page.
  2. Right click the downloaded package zip file, select Properties > General and click on "Unblock" before unzipping it.
  3. Temporarily allow custom scripts during the installation in order to add the JavaScript tracking code and Tracking Agent application (sppkg for modern sites, wsp solution for classic sites) to your app catalog and all of the site collections you wish to monitor.
    Execute the following commands in the SharePoint Online Management Shell (edit your SharePoint admin center and site collection URLs). 
    1. Connect to SharePoint Online Admin Center with the SharePoint Online Global Administrator account:

      Connect-SPOService -Url https://company-admin.sharepoint.com
    2. 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
    3. If the current value of DenyAddAndCustomizePages is Enabled, set it to Disabled:

      Set-SPOsite https://company.sharepoint.com -DenyAddAndCustomizePages 0
    4. Disconnect from SharePoint Online: 
      Disconnect-SPOService
  4. Browse to your SharePoint Online site collection Solution Gallery. The gallery 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/_catalogs/solutions/forms/allitems.aspx
  5. From your Solution Gallery, click Upload Solution > Choose File. Then select the CAI.wsp  solution file which can be found in the deployment package and click Activate.
  6. If you are presented with a request for access, make sure you have temporarily allowed custom scripts for your site collection and app catalog.
  7. Once the solution is installed, return to the CardioLog Engage configuration screen and click Copy script to copy the JavaScript tracking code.

  8. 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

  9. Paste the tracking code copied from the "Add the CardioLog Tracking Code to your Sites" step and click OK.

  10. In order to track SharePoint Online modern sites and pages, install the Tracking Agent App:

    1. Click CardioLog Analytics Tracking Agent App for modern sites to download the Tracking Agent App.

    2. Upload the CardioLogTrackingAgentAddin.sppkg app to the SharePoint Admin apps > App Catalog > Apps for SharePoint > New.

    3. Click Deploy (do NOT select "Make this Solution available to all sites in the organization")

    4. Add the App to your site collection and to all of its subsites under Site Contents > New App

    5. Click on Apps from your organization and click CardioLog Tracking Agent (it will be installed automatically)

  11. 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

Inject the tracking code to all site pages yourself

Select this option to inject the tracking code manually to your site pages.

  1. Click Copy script to copy the JavaScript tracking code to the clipboard.
  2. Paste the tracking code into the <head> section of each site page you would like to track.

Advanced Settings

Host the tracking code on a private CDN

By default the tracking code resources are hosted on Microsoft Azure. Select this option if you would like to host the tracking code resources on a private CDN for increased security.
Note: It is required to perform this step before adding the tracking code to selected sites.

  1. Expand the Advanced Settings section in the "Add the CardioLog Tracking Code to your Sites" step.
  2. Switch on the Host the tracking code on a private CDN toggle.
  3. Enter the CDN Address and click Save.
  4. Click Download CDN resources Here to download the latest version of the tracking code resources and host them on your private CDN.

Step 4: Choose User Attribute that Contains User Phone Numbers

In order to use the Phone Call, Text Messages (SMS) and Mobile Notifications channels, select the user profile attribute that contains user phone numbers and click Save. This information will be taken from SharePoint user profiles.


CardioLog Engage Configuration Screen: Step 4

Step 5: Sign in to CardioLog Engage with your Power BI Account

In this step, connect to Power BI in order to gain access to the CardioLog Engage user interface and create campaigns, and to your CardioLog Engage reports in Power BI to analyze user responses to your campaigns.

  1. Click Connect to Power BI and enter the Username and Password of a user with Power BI Pro or Power BI Premium Per User (PPU) license and click Save. This user will be the owner of the CardioLog Analytics app workspace in Power BI and will be able to share it with others in the organization.


    CardioLog Engage Configuration Screen: Step 5

  2. Go to the Power BI interface.

    1. Login with the credentials you entered in the "Sign in to CardioLog Engage with your Power BI" Account step.

    2. Create a Power BI app workspace for the CardioLog Engage reports. Learn more about Power BI app workspaces.

      1. Select Workspaces Create a workspace

      2. Enter the following details:
        Name - CardioLog Analytics
        Privacy - Private - Only approved members can see what's inside
        Permissions - Members can edit Power BI content

      3. Add email addresses of people you want to have access to the workspace, and select Add. Note that you can't add group aliases, just individuals.

      4. Decide whether each person is a member or an admin (admins can edit the workspace itself, including adding other members, members can edit the content in the workspace) and click Save.

  3. CardioLog Engage reports will be available in your app workspace within a few business days. You will receive an email notification as soon as all the data has been processed and your reports are ready to use.

  4. When the reports are ready, share them with your colleagues:
    1. Sign in to Power BI with the credentials you entered in the "Connect to Power BI" step.
    2. Select Workspaces > CardioLog Analytics > select the Create app button in the upper right to start the process of sharing all the content in that workspace.
    3. First, on Setup tab, enter the following details:
      App name - CardioLog Analytics
      Description - Analytics for SharePoint and Office 365

    4. Next, on Navigationyou see the reports that's going to be published as part of the app and organize the navigation pane.
    5. Last, on Permissions, decide who has access to the app: either everyone in your organization, or specific people or email distribution lists and click Publish app.

Step 6: Connect to Active Directory

In this step you can connect to your Azure Active Directory in order to import user information from Azure AD.

  1. Login to SharePoint with the credentials of a global admin account that has permissions to sign in to Azure AD and read directory data (users' full profiles and groups). 
  2. Click Connect to Active Directory to connect to your Azure Active Directory with the current logged on user and click Save.


    CardioLog Engage Configuration Screen: Step 6

  3.  Select all user attributes that you would like to filter and report on. This information will be taken from Active Directory user attributes. If you have created custom user attributes you can also use them. It is recommended to select the following basic attributes - department, office, country, manager, title.
    1. Using the search bar, enter the name of any attribute you would like to find and include.

    2. Select the button next to each user property you would like to include in your usage reports.

    3. Click Save to confirm your selection.

    User attributes may be added or removed at any time to accommodate your needs.

    Note: if you have already imported user information from SharePoint user profiles in step 2, there is no need to perform this step.

    CardioLog Engage Configuration Screen: Step 6

Step 7: Choose User Groups to Opt-out

In this step you can select which user groups you would like to opt-out of data collection.

The user group information will be taken from Azure Active Directory. It may take up to 24 hours for changes to take effect.

  1. Connect to Azure Active Directory with an account that is a global administrator in your Office 365 tenant. This account will be used in order to approve the required permissions for CardioLog Analytics SaaS to connect to Azure Active Directory.



  2.  Click Accept to approve the required permissions.



  3.  Select the user groups you would like to opt-out of data collection and click Save.


     
  4. Click Confirm to acknowledge that:
    1. Data for opted out users, including user profile information and usage data, will be: 
      1. Permanently deleted 
      2. No longer collected
      3. No longer available in reports
    2. Data for opted in users, including user profile information and usage data, will be collected and available in reports, however any data that was deleted/not collected during the time period they were opted out will not be recovered.
    3. Using this functionality may result in data discrepancies in some reports.

Step 8: Assign Permissions to Power BI Reports

In this step you can select the users and groups you would like to grant report permissions to and select the specific sites that they should see reports for.
The user information will be taken from Azure Active Directory. It may take up to 24 hours for changes to take effect.

  1. Connect to Azure Active Directory with an account that is a global administrator in your Office 365 tenant. This account will be used in order to approve the required permissions for CardioLog Analytics SaaS to connect to Azure Active Directory.



  2. Click Accept to approve the required permissions.



  3. Select the users and groups you would like to grant report permissions to. You can always go back and select additional users or groups or remove users or groups from your selection by clicking on -Remove user or group from list.

    1. Using the Search for a user or group bar, enter the name of any user or group you would like to find and assign permissions to. 

      Note: Selected users should have a Power BI Pro or Premium per User (PPU) license assigned to them.



    2. For each user or group, click Custom to select the specific sites the user or group is allowed to see reports for, or click Access to all sites to select all sites.



    3. Click Save to confirm your selections.

    4. Share the CardioLog Analytics SaaS reports in Power BI service with the selected users and groups.
      Note: Permissions are applied using Power BI Row Level Security (RLS). RLS does not apply to users or groups who have edit permissions on the dataset.

    5. Add the 'Site Analyst' role in Power BI service to users and groups who have access to specific sites: 
      CardioLog Analytics SaaS Dataset > More options > Security > Select the 'Site Analyst' role > Add each user or group as a member.

    6. Add the 'Global Analyst (View All Sites)' role in Power BI service to users and groups who have access to all sites:
      CardioLog Analytics SaaS Dataset > More options > Security > Select the 'Global Analyst (View All Sites)' role > Add each user or group as a member.
      Note: Since roles are reset in Power BI on every version update, it is highly recommended to create user groups for managing users roles (one for site analysts and one for global analysts) so it would be easier to maintain.


  • No labels