Table of Contents
- Optimizely Web Experimentation
- Optimizely Web Personalization
- Optimizely Web Recommendations
This topic describes how to:
- Identify which logging endpoint is used by a given Optimizely Web snippet
- Understand the benefits of the
/events
endpoint - Enable the
/events
endpoint for your account
Optimizely Web snippets can be configured to use one of two logging endpoints: /event
or /events
. Snippets that use the /event
endpoint generate one network request per event to be tracked, while snippets using the /events
endpoint batch events together. These batches are sent once per second for the first ten seconds after snippet activation, and then immediately thereafter.
Identify the logging endpoint used by a snippet
-
In your web browser, visit a page where the snippet is implemented.
-
Select the Network tab.
-
In the Filter field, type logx to only display logging requests generated by the Optimizely snippet.
-
Select a network request and check the request URL. If the URL ends in
/event
, your snippet has been configured to use the/event
endpoint. If the URL ends in/events
, your snippet has been configured to use the/events
endpoint.
Benefits of the /events
endpoint
-
Snippets using the
/events
endpoint generate fewer network requests during the critical first few seconds after a page starts loading, leading to improvements in page load performance. -
Snippets using the
/events
endpoint generate fewer network requests overall. Mobile websites can reduce their impact on data and battery consumption by reducing the number of network requests they generate. -
Snippets using the
/events
endpoint enable theholdEvents
andsendEvents
APIs. These APIs provide granular control over when the snippet begins logging events. They can be used to further optimize page performance, or to more closely align Optimizely logging with third-party analytics. See this article for more information on these use-cases.
Enable the /events
endpoint for the snippets in your account
To enable the /events
endpoint for all snippets in your account, please submit a support ticket via the form in the Optimizely web interface.