Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd47116d

Browse files
authored
Apply suggestions from code review
1 parent65aa96f commitd47116d

File tree

1 file changed

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

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -730,16 +730,16 @@ Plugins are bound by Analytics 2.0 which handles operations such as observabilit
730730
***Non-critical Plugins**: Analytics.js can start event delivery before this plugin finishes loading. This means your plugin can fail to load independently from all other plugins. For example, every Analytics.js destination is a non-critical plugin. This makes it possible for Analytics.js to continue working if a partner destination fails to load, or if users have ad blockers turned on that are targeting specific destinations.
731731

732732
>info ""
733-
>Non-critical plugins are only non-critical from a loading standpoint.A crash in abefore plugin can still halt the event delivery pipeline.
733+
>Non-critical plugins are only non-critical from a loading standpoint.For example, if the`before` plugin crashes, this can still halt the event delivery pipeline.
734734
735-
Non-critical plugins run through a timeline thatexecute in order of insertion based on the entry type. Segment has these five entry types of non-critical plugins:
735+
Non-critical plugins run through a timeline thatexecutes in order of insertion based on the entry type. Segment has these five entry types of non-critical plugins:
736736

737737
Type | Details
738738
---- | -------
739-
`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) to verify that every event has the correct shape.
740-
`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) to enrich every event with page information.
739+
`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.
740+
`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.
741741
`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.
742-
`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) which waits for destinations to succeed or fail so it can send it observability metrics.
742+
`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.
743743
`utility` | Executes only with manual calls such as Logging. <br><br>These are plugins that change the Analytics 2.0 functionality. Utility plugins run outside of the event pipeline, and only execute once.
744744

745745
###Example Plugins
@@ -810,7 +810,7 @@ const identityStitching = () => {
810810
awaitwindow.analytics.register(identityStitching())
811811
```
812812

813-
You can view Segment's[existing plugins](https://github.com/segmentio/analytics-next/tree/master/src/plugins) to see more examples.
813+
You can view Segment's[existing plugins](https://github.com/segmentio/analytics-next/tree/master/src/plugins){:target="_blank"} to see more examples.
814814

815815
###Register a plugin
816816
Registering plugins enable you to modify your analytics implementation to best fit your needs. You can register a plugin using this:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp