Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Overview

Instructions to send "Wishlist" clicks information using the Javascript Tagging Library.

Step-by-step guide

This event must be triggered when users click on "Wishlist" button. At that moment trackWishlist function should be executed including parameters detailed below.

trackWishlist

Use this function to send information when a user clicks on an "Wishlist" button.

Code Block
languagejs
trackWishlist(terms, page, position, productid, title, url, options, callback)


Parameters

...

Options

The options object should contains additional parameters not passed as parameters in function call:

Code Block
languagejs
{    
	lang: LANGUAGUE,
	scope: SCOPE,
	section: SECTION,
	user: USER_ID,
	session: SESSION_ID
}

...

*UserID should be an UUID identifier.

NOTE: The values for scope and lang will be provided by the Empathy Team.

NOTE: If you are setting up the trackWishlist function into the product detail page, terms and page values will be relative to the product situation into the results grid before being clicked by the user.

The callback function receives an object with the following content. Also options parameters are included:

...

languagejs

...

and options configuration

Please refer to the trackClick parameters and options configuration.


Code sample

Code Block
languagejs
empathyTAG.trackWishlist('test', 1, 3, "My product id", 'My product title', 'http://MY_PRODUCT_URL.com',{lang:'en',scope:'testscope'},function(){});

Filter by label (Content by label)
cqllabel = "empathy-tag-api-javascript" and space = currentSpace ( )