Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide
Legal TermsDev CommunityOptimizely AcademySubmit a ticket

Optimizely developer documentation

How can we help you?

Try our conversational search powered by Generative AI!

AI OnAI Off

Home page

Describes how to configure a tracking request on the Home page.

The home page is typically the first page seen by a user when they access your website or app. To track the user visiting the home page, send a home tracking request.

📘

Note

Use the optional user parameter to supply the customer’s pseudonymised ID. Do this only once per session; you typically supply it on the next page load following a customer login.

Home page tracking request example.

{ "type" : "home", "ip" : "10.42.37.139", "session" : "new", "cuid" : "new" "site" : "retailer", "clientToken" : "1234abcd5678", "channel" : "web", "lang" : "en-gb", "currentURI" : "www.retailer.com/home", "previousURI" : "https://www.google.co.uk/?gws_rd=ssl#q=retailer", "userAgent" : "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36", "user" : { "id":"abcd1234efgh" } }

Did this page help you?