Page History
...
Send a click event on a DOWNLOAD button:
Info icon false <input type="button" value="DOWNLOAD" onclick="document.__Page.SendEvent('Visit', 'Main Page Buttons > DOWNLOAD');" />
www.intlock.com main page Main Page DOWNLOAD buttonButton
In this example, when a user clicks on the DOWNLOAD button CardioLog will send an event of type 'Visit' to the server, specifying which button has been clicked by the user (ie., 'Main Page Buttons > DOWNLOAD'). We recommend defining a unique prefix for each group of UI components that will be displayed in reports (in this case, 'Main Page Buttons').
To see how many times the button was clicked, use the Events report (chart or table), and type 'Main Page Buttons' in the Website Item field.
To see who clicked on the button, use the Visitors by Events report (chart or table), and type 'Main Page Buttons' in the Website Item field.Send a click event on a banner that links to an external site:
Info icon false <a href="http://www.intlock.com" onclick="document.__Page.SendEvent('Visit', 'Banners > Intlock Website');"><img src="intlock_logo.gif"></a>
support.intlock.com main page Main Page Intlock logoLogo
In this example, when a user clicks on the banner CardioLog will send an event of type "Visit" to the server, specifying which banner has been clicked by the user before redirecting to "www.intlock.com" (ie., "Banners > Intlock website"). We recommend defining a unique prefix for each group of UI components that will be displayed in reports (in this case, "Banners").
To see how many times the banner was clicked, use the Events report (chart or table), and type 'Banners' in the Website Item field.
To see who clicked on the banner, use the Visitors by Events report (chart or table), and type 'Banners' in the Website Item field.
Note: CardioLog automatically tracks outbound links from SharePoint sites to external destinations. To see how many times your links were clicked, use the External Destinations report.
...
The SendGoal function accepts the following parameter:
- Goal ID - Required. Goals are created in CardioLog under Settings > Goals. After creating a goal, the Goal ID can be found in the ID column.
Settings - Goals
Code Sample
Send a goal event on a Register to a Webinar button:
Create the goal, and make a call to the CardioLog SendGoal function with the proper Goal ID.Info icon false <input type="button" value="REGISTER NOW " onclick="document.__Page.SendGoal(1);" />
www.intlock.com main page REGISTER NOW button
To monitor your goal progress, use the Goal reports, and select the relevant goal in the Visitor Segments > Goal filter of the widget preferences.
Visitor Segments > Goal
Anchor | ||||
---|---|---|---|---|
|
...
Using the __referrer Parameter
The CardioLog Client-Side API supports identifying and monitoring external locations. You can use the _referrer parameter whenever you publish a link to your monitored environment and you wish to track the source of the referring page.
...
The SendEvent method in the /CardioLogAPI/Events.asmx web service accepts the following parameters:
- UserName - Optional. The user associated with the event. If not passed, the method will use the current user credentials.
- SessionID - Required. The unique session ID associated with the event.
- Event Type - Required. The event type ID number
- URL - Required. The URL of the page where the event occurred.
- UserAgent - Optional. The user details including browser type and OS version.
- ClientIP - Optional. The user IP address.
- Param1 - Optional. Used to store additional information about the event, typically for custom event types. This string is limited to 1000 characters. Built-in events reserve this string for the system. For example, in a "Visit" event it stores the referrer information; in a "Search" event it stores the search term.
- Param2 - Optional. Used to store additional information about the event, typically for custom event types. This string is limited to 50 characters. Built-in events reserve this string for the system. For example, in a "Search" event it is used to store the number of results.
...
To set the page referrer, use the following optional parameters to track the source of the page:
- Param1 -The related view event ID or a string representing referrer types such as navigation toolbars, campaigns, banners, etc.
- Param2 -The referrer page URL
Referrer pages can be retrieved in CardioLog with the "Navigation" visual controls.
...