Skip to content

Commit 504ea71

Browse files
authored
Merge pull request #7819 from segmentio/optimizely-page-events
Clarifying how Page events are sent to Optimizely [DOC-1161]
2 parents 5e04fb1 + aa5d6e3 commit 504ea71

File tree

1 file changed

+3
-2
lines changed
  • src/connections/destinations/catalog/optimizely-web

1 file changed

+3
-2
lines changed

src/connections/destinations/catalog/optimizely-web/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,14 @@ Segment also handles the following mapping:
6464
6565
### Page
6666

67-
Segment maps `page` calls to its own `track` events. For example, invoking `analytics.page('Page Viewed')` using Segment's API maps the event to a `analytics.track('Page Viewed')` event. Segment maps the `track` event to other downstream destinations like a regular Segment `track` event.
67+
Segment maps Page calls to its `track` events. When you call `analytics.page('<name>')`, Segment automatically converts it into a Track call with the formatted event name `Viewed <name> Page`. For example, `analytics.page('Home');` becomes `analytics.track('Viewed Home Page');`.
68+
69+
This event is then forwarded to Optimizely as a custom event named `Viewed Home Page`. To capture this event in Optimizely, you’ll need to define a Custom Event with the matching API name.
6870

6971
### Experiment Listeners
7072

7173
Upon activation of an Optimizely experiment, an “Experiment Viewed” Track event is sent to Segment. The event includes Optimizely experiment metadata which is sent whenever the Optimizely [`campaignDecided` listener](https://docs.developers.optimizely.com/web/docs/add-listener#section-campaign-decided){:target="_blank"} is activated.
7274

73-
7475
> info "Activating a Web experiment sends 'Experiment Viewed' Track events to Segment"
7576
> When you activate an Optimizely Web experiment, Optimizely automatically sends an "Experiment Viewed" Track event to Segment. This makes the Optimizely Web integration act as both a Destination and a Source, because the Track calls enrich and send Experiment Decisions and Exposure event data to Segment, which you can then send to other platforms.
7677

0 commit comments

Comments
 (0)