| trackEvent | R Documentation |
Use trackEvent for tracking a single event together with any extra properties.
Use trackMetric to track a summary of some measured metrics.
trackEvent(session, name, properties)
trackMetric(session, name, metrics, properties)
session |
The |
name |
Name of the event. |
properties |
List of properties to track. |
metrics |
Numeric vector of values to calculate summary on. Non-finite values are removed. |
Method sends data to client's browser; returns the sent list, invisibly.
Individual measured values are not sent to Application Insights. Instead, summaries of the values (mean, range, average, standard deviation) are sent. Note: Standard deviation doesn't quite work yet.
Before calculating summaries, non-finite values are removed (see is.finite).
If there are no values in metrics, nothing is sent.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.