Skip to content

Commit 5c90891

Browse files
committed
Changing 'Configuration' to 'Advanced configuration' and making other config updates
1 parent c34e3d4 commit 5c90891

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

articles/azure-monitor/app/javascript-feature-extensions.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,14 @@ Ignore this setup if you use the npm setup.
113113

114114
The following key properties are captured by default when the plug-in is enabled.
115115

116-
### Custom event properties
116+
#### Custom event properties
117117
| Name | Description | Sample |
118118
| --------------------- | ---------------------------------------|-----------------|
119119
| Name | The name of the custom event. More information on how a name gets populated is shown in the [preceding section](#use-the-plug-in).| About |
120120
| itemType | Type of event. | customEvent |
121121
|sdkVersion | Version of Application Insights SDK along with click plug-in.|JavaScript:2.6.2_ClickPlugin2.6.2|
122122

123-
### Custom dimensions
123+
#### Custom dimensions
124124
| Name | Description | Sample |
125125
| --------------------- | ---------------------------------------|-----------------|
126126
| actionType | Action type that caused the click event. It can be a left or right click. | CL |
@@ -130,34 +130,34 @@ The following key properties are captured by default when the plug-in is enabled
130130
| pageName | Title of the page where the click event is triggered. | Sample Title |
131131
| parentId | ID or name of the parent element. | navbarContainer |
132132

133-
### Custom measurements
133+
#### Custom measurements
134134
| Name | Description | Sample |
135135
| --------------------- | ---------------------------------------|-----------------|
136136
| timeToAction | Time taken in milliseconds for the user to click the element since the initial page load. | 87407 |
137137

138-
## Configuration
138+
## Advanced configuration
139139

140140
| Name | Type | Default | Description |
141141
| --------------------- | -----------------------------------| --------| ---------------------------------------------------------------------------------------------------------------------------------------- |
142142
| auto-Capture | Boolean | True | Automatic capture configuration. |
143143
| callback | [IValueCallback](#ivaluecallback) | Null | Callbacks configuration. |
144-
| pageTags | String | Null | Page tags. |
144+
| pageTags | Object | Null | Page tags. |
145145
| dataTags | [ICustomDataTags](#icustomdatatags)| Null | Custom Data Tags provided to override default tags used to capture click data. |
146146
| urlCollectHash | Boolean | False | Enables the logging of values after a "#" character of the URL. |
147147
| urlCollectQuery | Boolean | False | Enables the logging of the query string of the URL. |
148148
| behaviorValidator | Function | Null | Callback function to use for the `data-*-bhvr` value validation. For more information, see the [behaviorValidator section](#behaviorvalidator).|
149149
| defaultRightClickBhvr | String (or) number | '' | Default behavior value when a right-click event has occurred. This value is overridden if the element has the `data-*-bhvr` attribute. |
150150
| dropInvalidEvents | Boolean | False | Flag to drop events that don't have useful click data. |
151151

152-
### IValueCallback
152+
#### IValueCallback
153153

154154
| Name | Type | Default | Description |
155155
| ------------------ | -------- | ------- | --------------------------------------------------------------------------------------- |
156156
| pageName | Function | Null | Function to override the default `pageName` capturing behavior. |
157157
| pageActionPageTags | Function | Null | A callback function to augment the default `pageTags` collected during a `pageAction` event. |
158158
| contentName | Function | Null | A callback function to populate customized `contentName`. |
159159

160-
### ICustomDataTags
160+
#### ICustomDataTags
161161

162162
| Name | Type | Default | Default tag to use in HTML | Description |
163163
|---------------------------|---------|-----------|-------------|----------------------------------------------------------------------------------------------|
@@ -169,7 +169,7 @@ The following key properties are captured by default when the plug-in is enabled
169169
| parentDataTag | String | Null | N/A | Stops traversing up the DOM to capture content name and value of elements when encountered with this tag. For example, `data-<yourparentDataTag>` can be used in the HTML tags.|
170170
| dntDataTag | String | `ai-dnt` | `data-ai-dnt`| The plug-in for capturing telemetry data ignores HTML elements with this attribute.|
171171

172-
### behaviorValidator
172+
#### behaviorValidator
173173

174174
The `behaviorValidator` functions automatically check that tagged behaviors in code conform to a predefined list. The functions ensure that tagged behaviors are consistent with your enterprise's established taxonomy. It isn't required or expected that most Azure Monitor customers use these functions, but they're available for advanced scenarios.
175175

@@ -181,7 +181,7 @@ Three different `behaviorValidator` callback functions are exposed as part of th
181181
| BehaviorMapValidator | Use this callback function if your behavior's data structure is a dictionary. |
182182
| BehaviorEnumValidator | Use this callback function if your behavior's data structure is an Enum. |
183183

184-
#### Sample usage with behaviorValidator
184+
##### Sample usage with behaviorValidator
185185

186186
```js
187187
var clickPlugin = Microsoft.ApplicationInsights.ClickAnalyticsPlugin;
@@ -366,12 +366,6 @@ var appInsights = new Microsoft.ApplicationInsights.ApplicationInsights({
366366
appInsights.loadAppInsights();
367367
```
368368

369-
## Enable correlation
370-
371-
Correlation generates and sends data that enables distributed tracing and powers the [application map](../app/app-map.md), [end-to-end transaction view](../app/app-map.md#go-to-details), and other diagnostic tools.
372-
373-
JavaScript correlation is turned off by default to minimize the telemetry we send by default. To enable correlation, see the [JavaScript client-side correlation documentation](./javascript.md#enable-distributed-tracing).
374-
375369
## Sample app
376370

377371
[Simple web app with the Click Analytics Autocollection Plug-in enabled](https://go.microsoft.com/fwlink/?linkid=2152871)

0 commit comments

Comments
 (0)