Loading...

Last updated: Nov 06 2017

Area: Episerver Perform, Episerver Reach Applies to versions: 1.0 and higher (JavaScript API)

Wish list page tracking request

The wish list page is tracked by providing a list of all products in the wish list.

NameDescriptionUsage

wishList

Element containing wish list specific sub-elements

 

      items List of checkout items  
        refCode Product reference code

[String]

A wish list page is tracked using the following script. The example shows a wish list with two items in total, PROD500 and PROD600.

{
	"type"     : "wishlist",
	"lang"     : "en-gb",
	"wishList" : {
		"items" : [{
			"refCode" : "PROD500"
		}, {
			"refCode" : "PROD600"
		}]
	}
} 

If a user’s wish list is empty, the page is tracked using the following script.

{
	"type"     : "wishlist",
	"lang"     : "en-gb",
	"wishList" : {
		"items" : []
	}
} 

Do you have feedback on this documentation? Send an email to documentation@episerver.com. For development-related questions and discussions, refer to our Forums on https://world.episerver.com/forum/