Namespace bc.metrics
Defined in: metrics.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Brightcove Metrics provides functions to measure interactions with applications.
|
| Function Attributes | Function Name and Description |
|---|---|
|
bc.metrics.endContentSession(uri)
Stop tracking the users session for a given piece of content.
|
|
|
bc.metrics.startContentSession(uri, name)
Start tracking how long a user interacts with a given piece of content within the application.
|
Namespace Detail
bc.metrics
Brightcove Metrics provides functions to measure interactions with applications.
Function Detail
bc.metrics.endContentSession(uri)
Stop tracking the users session for a given piece of content. "endContentSession" should be called with the same URI that was called with its corresponding "startContentSession".
- Parameters:
- uri
- A unique identifier for this content. This needs to match the URI that was passed into the startContentSession event.
bc.metrics.startContentSession(uri, name)
Start tracking how long a user interacts with a given piece of content within the application. For example the blog.js view tracks how long the user
spends on each article by calling bc.metrics.startContentSession when they open the article and then bc.metrics.endContentSession when they either navigate away from the
view or back to the list of the articles.
- Parameters:
- uri
- A unique identifier for this content. Ideally a URI to the content on the web, but any unique ID will suffice.
- name
- A human readable name to be displayed in the analytics section of App Cloud.