Search Tagging

Created by Lara Menéndez · last update June 6, 2019

What is about

Search tagging purpose is the tracking of user’s search interactions. All the information collected is used for Empathy’s contextual and analytics services. In this page, all the events which should be tracked and the enabled instrumentation methods are described.

Events to track

All the events listed below, compose the full Search Empathy Tagging:

  • Query: triggered at the moment any search is performed. Any time when results or new results are about to be displayed.

  • Click: triggered when any result is selected.

  • Add to Cart: triggered when any product is added to cart from search results page or from product detail page after a search.

  • Wishlist: triggered when any product is added to cart from search results page.

  • Checkout: triggered when any product is finally purchased after added to cart after a search.

Instrumentation methods

  • Empathy REST API: allows event tracking through performing GET requests to the endpoints enabled for each of the events described above.

  • Empathy JavaScript Tagging Library: allows event tracking through function calls to the functions defined for each of the events described above.

  • Tag Manager Integrations: Empathy is integrated with well-known Tag Manager’s vendors.