Skip to content

Commit bd880ee

Browse files
author
markzegarelli
committed
Fix links
1 parent e5a78a5 commit bd880ee

File tree

1 file changed

+14
-14
lines changed
  • src/connections/sources/catalog/libraries/website/javascript

1 file changed

+14
-14
lines changed

src/connections/sources/catalog/libraries/website/javascript/index.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ analytics.ready(callback);
357357

358358
The `ready` method has the following fields:
359359

360-
Field | Type | Description
361-
----- | ---- | -----------
362-
`callback` | Function | A function to be executed after all enabled destinations have loaded.
360+
| Field | Type | Description |
361+
| ---------- | -------- | --------------------------------------------------------------------- |
362+
| `callback` | Function | A function to be executed after all enabled destinations have loaded. |
363363

364364
### Debug
365365

@@ -386,10 +386,10 @@ Use the `on` method to set listeners for these events and run your own custom co
386386
analytics.on(method, callback);
387387
```
388388

389-
Field | Type | Description
390-
----- | ---- | -----------
391-
`method` | String | Name of the method to listen for.
392-
`callback`| Function | A function to execute after each emitted method, taking three arguments: `event`, `properties`, `options`.
389+
| Field | Type | Description |
390+
| ---------- | -------- | ---------------------------------------------------------------------------------------------------------- |
391+
| `method` | String | Name of the method to listen for. |
392+
| `callback` | Function | A function to execute after each emitted method, taking three arguments: `event`, `properties`, `options`. |
393393

394394
Example:
395395

@@ -605,13 +605,13 @@ Plugins are bound by Analytics 2.0 which handles operations such as observabilit
605605
606606
Non-critical plugins run through a timeline that executes in order of insertion based on the entry type. Segment has these five entry types of non-critical plugins:
607607

608-
Type | Details
609-
---- | -------
610-
`before` | Executes before event processing begins. These are plugins that run before any other plugins run. <br><br>For example, validating events before passing them along to other plugins. A failure here could halt the event pipeline. <br><br> See the example of how Analytics.js uses the [Event Validation plugin](https://github.com/segmentio/analytics-next/blob/master/src/plugins/validation/index.ts){:target="_blank"} to verify that every event has the correct shape.
611-
`enrichment` | Executes as the first level of event processing. These plugins modify an event. <br><br> See the example of how Analytics.js uses the [Page Enrichment plugin](https://github.com/segmentio/analytics-next/blob/master/src/plugins/page-enrichment/index.ts){:target="_blank"} to enrich every event with page information.
612-
`destination` | Executes as events begin to pass off to destinations. <br><br> This doesn't modify the event outside of the specific destination, and failure doesn't halt the execution.
613-
`after` | Executes after all event processing completes. You can use this to perform cleanup operations. <br><br>An example of this is the [Segment.io Plugin](https://github.com/segmentio/analytics-next/blob/master/src/plugins/segmentio/index.ts){:target="_blank"} which waits for destinations to succeed or fail so it can send it observability metrics.
614-
`utility` | Executes once during the bootstrap, to give you an outlet to make any modifications as to how Analytics.js works internally. This allows you to augment Analytics.js functionality.
608+
| Type | Details |
609+
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
610+
| `before` | Executes before event processing begins. These are plugins that run before any other plugins run. <br><br>For example, validating events before passing them along to other plugins. A failure here could halt the event pipeline. <br><br> See the example of how Analytics.js uses the [Event Validation plugin](https://github.com/segmentio/analytics-next/blob/master/packages/browser/src/plugins/validation/index.ts){:target="_blank"} to verify that every event has the correct shape. |
611+
| `enrichment` | Executes as the first level of event processing. These plugins modify an event. <br><br> See the example of how Analytics.js uses the [Page Enrichment plugin](https://github.com/segmentio/analytics-next/blob/master/packages/browser/src/plugins/page-enrichment/index.ts){:target="_blank"} to enrich every event with page information. |
612+
| `destination` | Executes as events begin to pass off to destinations. <br><br> This doesn't modify the event outside of the specific destination, and failure doesn't halt the execution. |
613+
| `after` | Executes after all event processing completes. You can use this to perform cleanup operations. <br><br>An example of this is the [Segment.io Plugin](https://github.com/segmentio/analytics-next/blob/master/packages/browser/src/plugins/segmentio/index.ts){:target="_blank"} which waits for destinations to succeed or fail so it can send it observability metrics. |
614+
| `utility` | Executes once during the bootstrap, to give you an outlet to make any modifications as to how Analytics.js works internally. This allows you to augment Analytics.js functionality. |
615615

616616
### Example Plugins
617617
Here's an example of a plugin that converts all track event names to lowercase before the event goes through the rest of the pipeline:

0 commit comments

Comments
 (0)