Page History
Contents
- Configuring Data Collection for Anonymous Users
- Monitoring Authenticated Users in an Anonymous Environment After They Sign In
- Retrieving the SharePoint Signed-In User Information
- Retrieving the User ID Using Manual Configuration
- Configuring the Tracking Agent with SSL
- Configuring Timeouts for the Tracking Agent
- Configuring Session Idle Time
- Capturing Time on Site for Single-Page Visits
Table of Contents |
---|
Anchor | ||||
---|---|---|---|---|
|
...
Perform the following steps in order to configure data collection for anonymous users, using a unique ID. Note: By default, the user name will be a unique ID logged in the format "Anonymous_XXXX"
Edit the [Installation directory]\CardioLogAgent\web.config file and set the value of the "SupportAnonymousUsers" and "overwriteConnectedUser" keys to "true" like so:
Info icon false <add key="SupportAnonymousUsers" value="true" />
<add key="overwriteConnectedUser" value="true" />- In the file system, verify that the [Installation directory]\CardioLogAgent directory security allows access for anonymous users:
Right click on the [Installation directory]\CardioLogAgent directory, choose Properties > Security > Add > Add the ANONYMOUS LOGON user. - In IIS Manager, verify that the CardioLogAgent web application directory security allows Anonymous Access:
Click the CardioLogAgent web application in IIS, choose Authentication, enable Anonymous Authentication and disable Windows Authentication.
Note: By default, the user name will be a unique ID logged in the format "Anonymous_XXXX"
[Installation directory] - by default, the CardioLogAgent folder is located in the CardioLog Installation folder. If the CardioLog Analytics SharePoint feature is installed, the CardioLogAgent folder is located on all SharePoint WFEs (Web Front Ends) under the SharePoint website "_layouts" folder.
Anchor | ||||
---|---|---|---|---|
|
Perform the following steps in order to configure data collection for anonymous users, using the workstation IP address. Note: CardioLog always collects the workstation IP for reporting geographic location.
- Follow the steps above for configuring data collection for anonymous users, using a unique ID cookie.
Edit the [CardioLog Installation Folder]\EventCollector\web.config file and set the value of the "UseIPAddressForAnonymousUserName" key to "true" like so:
Info icon false <add key="UseIPAddressForAnonymousUserName" value="true" />
Note: CardioLog always collects the workstation IP for reporting geographic location.
Anchor | ||||
---|---|---|---|---|
|
CardioLog can identify authenticated users in an anonymous environment by retrieving their user name from SharePoint or using manual configuration.
Anchor | ||||
---|---|---|---|---|
|
- Follow the steps above for configuring the tracking agent for anonymous users.
Edit the following key in the [Installation directory]\CardioLogAgent\web.config file and set the value of the "UseSPAuth" key to "true" like so:
Info icon false <add key="UseSPAuth" value="true"/>
[Installation directory] - By default, the CardioLogAgent folder is located in the CardioLog Installation folder. If the CardioLog Analytics SharePoint feature is installed, the CardioLogAgent folder is located on all SharePoint WFEs under the SharePoint website "_layouts" folder.
Anchor | ||||
---|---|---|---|---|
|
CardioLog can identify authenticated users in an anonymous environment by retrieving the user name manually from a unique element value that is hidden in the client side code.
Perform the following steps in order to configure the tracking code to retrieve the user ID from SharePoint:
- Follow the steps above for configuring the tracking agent for anonymous users.
Pass the user's account name through SharePoint's server side code to a hidden element called "userid" in the client side code, like so:
Info icon false <input type="hidden" id="userid" name= "userid" value="DOMAIN\useraccountname">
For example, you can retrieve the user name from the _spUserId JavaScript global variable in SharePoint.
To verify this variable exists in your SharePoint pages, browse to a SharePoint page and enter javascript:alert(_spUserId) in the browser address bar. Verify that you see a popup with a valid ID number.
Anchor | ||||
---|---|---|---|---|
|
The CardioLog tracking agent can be easily configured to work with SSL, to avoid
...
possible authentication
...
prompts, or browser security messages when working with SSL
...
in SharePoint.
Upon activating CardioLog, the Configuration Wizard will be displayed. This wizard will help you configure the Tracking Agent, a tool designed to monitor visitor behavior in SharePoint.
...
Perform one of the following steps in order to configure the tracking agent to work with SSL:
- In Step 2 of the Configuration Wizard,
...
- deploy the CardioLog Analytics SharePoint feature.
...
- Create a CardioLogAgent folder under the SharePoint _layouts folder:
- Copy the installation files into the new folder from [CardioLog Installation Folder]\CardioLogAgent\.
- Open IIS Manager on your SharePoint machine, create a new virtual directory named CardioLogAgent under the SharePoint website "_layouts" folder, which should point to the copied CardioLogAgent folder.
- Set the following properties for the new virtual directory: ASP.NET 2.0, Integrated Windows Authentication. Verify that you can browse to https://sharepointportal/_layouts/CardioLogAgent/AgentEmbed.aspx
- Open the copied CardioLogAgent directory, open the web.config file and edit the following keys, located in the <appSettings> section:
<add key="CardioLogAgentRoot" value="/_layouts"/>
Edit the Java Script tracking code to change the Tracking Agent location according to the relevant software version you have installed: - In case you select to automatically add the JavaScript tracking code to SharePoint common JavaScript files or master pages instead:
- Configure SSL for the CardioLog web application.
Edit the following keys in the Java Script tracking code:
Info icon false cad.src = 'https://[domain name]/CardioLogAgent/getCAData.aspx?r='+Math.random();
ca.src = 'https://[domain name]/CardioLogAgent/ca.aspx?u='+document.location.href;
tt.src = 'https://[domain name]/CardioLogAgent/AgentEmbed.aspx?env=[SharePoint version]';[domain name] - the FQDN for the CardioLog web application.
The tracking code is located at the end of the file, between these comments: "//Intlock tracking code start" and "//Intlock tracking code end"By default, the JavaScript tracking code is embedded within a common
Java Script JavaScript file on all of your SharePoint WFEs
-(Web Front Ends), which typically is one of the following locations relevant to your software versions:
For MOSS 2007 only:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\
1033[language code]\core.js
For SharePoint 2010 only:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\
1033[language code]\init.js
For SharePoint 2013 only:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\init.js
The code is located at the end of the file, between these comments: "//Intlock tracking code start" and "//Intlock tracking code end".
"_layouts" folder location on MOSS 2007:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\
"_layouts" folder location on SharePoint 2010 and SharePoint 2013:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\
By default, the Java Script
ca.src='/_layouts/CardioLogAgent/ca.aspx?_random='+Math.random();
tt.src='/_layouts/CardioLogAgent/AgentEmbed.aspx?env=[SharePoint version]&r='+Math.random()*100000; [SharePoint version]: MOSS2007, SP2010 or SP2013
- Verify event collection. Click Ctrl+F12 or the "Agent Console" bookmark and wait for several seconds. Verify that you see the tracking agent console. To add the "Agent Console" bookmark to your browser, follow the instructions in http://cardiolog_server_name:port/CardioLog/Configuration/AgentConsoleBookmarklet.aspx (Enter your CardioLog server name and port number).
...
timeouts for the Tracking Agent
Anchor | ||||
---|---|---|---|---|
|
...
timeout for tracking usage data
To configure the timeout settings for the Tracking Agent when the EventCollector web application is not available, edit the following keys in [Installation directory]\CardioLogAgent\Web.config file (time values are in milliseconds):
Info | ||
---|---|---|
| ||
<!-- Timeout in case the EventCollector web application is not available (the default is 10 seconds).-> <add key="requestTimeOut" value="10000" /> <!-- How long to wait before trying again to access the EventCollector web application (the default is one minute).-- |
> |
[Installation directory] - By default, the CardioLogAgent folder is located in the CardioLog Installation folder. If the CardioLog Analytics SharePoint feature is installed, the CardioLogAgent folder is located on all SharePoint WFEs under the SharePoint website "_layouts" folder.
Anchor | ||||
---|---|---|---|---|
|
...
timeout for
...
content personalization
Info | ||
---|---|---|
| ||
var iignoreca = setTimeout(ignoreca, 5000); |
By default, the Java Script tracking code is embedded within a common Java Script file on your SharePoint WFEs according to the relevant software version you have installed:
For MOSS 2007 only:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\
[language code]\core.js
For SharePoint 2010 only:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\
[language code]\init.js
For SharePoint 2013 only:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\init.js
If the CardioLog Analytics SharePoint feature is installed, the Java Script tracking code is embedded within a Java Script file on your SharePoint WFEs according to the version you currently have installed:
For MOSS 2007 only:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\CardioLogAgent\CardioLogAgent.js
For SharePoint 2010 and SharePoint 2013 only:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\CardioLogAgent\CardioLogAgent.js
Anchor | ||||
---|---|---|---|---|
|
session idle time
Visits (Sessions) are defined as the activity of one visitor within a single browser session. If a user is inactive on your site for 30 minutes or more, any future activity will be attributed to a new session. Users that leave your site and return within 30 minutes will be counted as part of the original session.
To set the maximum idle time after which the session id is reset, edit the following key in [Installation directory]\CardioLogAgent\
web.
config file (Time value is in minutes):
Info | ||
---|---|---|
| ||
<add key="SessionTimer" value="30" /> |
[Installation directory] - by default, the CardioLogAgent folder is located in the CardioLog Installation folder. If the "CardioLog Analytics" SharePoint feature is installed, the CardioLogAgent folder is located on all SharePoint WFEs under the SharePoint website "_layouts" folder.
Anchor | ||||
---|---|---|---|---|
|
time on
site for
single-
page visits
Time on site is calculated by adding up the time a visitor spends on a page, for every page in a session, including the last page in the session.
To learn more see
Anchor | ||||
---|---|---|---|---|
|
By default, CardioLog Analytics JavaScript tracking code fires "pulse" events every few seconds, until the visitor leaves the page either by navigating away from it or by closing the browser.
These "pulse" events are then processed by the reporting engine to calculate the overall amount of time a visitor spends on a page in a more accurate way, including single-page and last-page visits.
To configure the pulse event time intervals, edit the following keys in [CardioLog Installation directory]\EventCollector\web.config file: (Time values are in milliseconds)
Info | ||
---|---|---|
| ||
<!-- The starting interval (default 3 seconds) - the first ping event will be sent after a visitor spends 3 seconds on the page. --> |
The time taken from minimum to maximum interval (default 30 seconds) - ping events will be sent every 3 seconds in the first 30 seconds a visitor is on the page. --> |
The final interval (default 30 seconds) - ping events after a visitor spends 30 seconds on the page will be sent every 30 seconds. --> |
Note: Finding the optimal ping configuration to reduce traffic to the CardioLog server, and still get accurate visit duration reports, depends on a few factors, but primarily the amount of traffic and common user behavior on the portal should be considered.
PingInterval - We recommend a value of 5 seconds as a reasonable "bounce" value, when considering the time it takes to fully load a designated page.
PingIntervalAscendTime - We recommend a value between 5 and 10 seconds.
PingIntervalMax - If the portal is a work tool for your end users, and they usually spend more than a minute on it, you can change this value to 60 seconds.
Anchor | ||||
---|---|---|---|---|
|
time between visits to different pages
CardioLog Analytics can calculate time on site by measuring the time between visits to different pages on your site. For example, if a user visits Page A at 4:15 PM. and then Page B at 4:20 PM, the time spent on Page A will be reported as five minutes. A "duration" event will be sent only when the visitor leaves the page and goes to another page, in order to reduce traffic to the CardioLog server.
If a user only visits a single page, it may not be possible to determine the length of time the visitor spent on the site. An action has to occur to trigger the JavaScript tracking code and the most common is a click to navigate to another page.
To measure time on site using duration events, and to disable pulse events, edit the following key in [Installation directory]\CardioLogAgent\js\AgentEmbed.js file:
Info | ||
---|---|---|
| ||
element.Ping = false; |
[Installation directory] - By default, the CardioLogAgent folder is located in the CardioLog Installation folder. If the CardioLog Analytics SharePoint feature is installed, the CardioLogAgent folder is located on all SharePoint WFEs under the SharePoint website "_layouts" folder.