Sending Beacons
Sending Beacons Through Tracker Functions
Tracker is a piece of code that you need to embed in every page of your web application. These functions capture your shopper’s action and store it in a beacon which is then sent to GroupBy. Once the tracker client is installed, instantiated, and has its Visitor and Session IDs set (e.g. with autoSetVisitor
), you can start sending beacons.
Implement beacons using these instructions if the following describes your relationship with GroupBy:
- You have not begun to use GroupBy Search on your site
- You have been asked by your Customer Success Director at GroupBy to implement beacons on your site to power GroupBy demos
Following are the event types you can send with the GbTracker tracker:
Event Type | Description |
---|---|
Search | When a shopper views search results from a non-GroupBy search engine. |
View Product | When a shopper clicks a product from the product details page. |
Add to Cart | When a shopper adds products to their cart. Only the items added to the cart must be included, not the entire cart. |
Remove from Cart | When a shopper removes at least one product from their cart. Only the items removed from the cart must be included, not the entire cart. |
View Cart | When a shopper views their cart. |
Order | When a shopper checks out items from their cart. |
search
gbTracker.sendSearchEvent()
Use Search
tracker function if:
- The search results are from your existing search engine.
- You are performing an A/B test between your existing search engine and GroupBy Search.
The search results.
If you are leveraging our Refinement Based Personalization API, include this property. You can reach out to your GroupBy representative for help. The data from this property will be stored in our data warehouse and will be useful to provide insights on how a given ML model impacted your ecommerce platform’s search performance.
Details of the product viewed.
The cart containing the items added to the shopper’s cart, not the entire cart, during the shopper’s interaction with the page.
The cart containing the items removed from the shopper’s cart, not the entire cart, during the shopper’s interaction with the page.
The cart containing the items present in the shopper’s cart when they viewed it during the shopper’s interaction with the page.
The cart containing the items present in the shopper’s cart when they viewed it during the shopper’s interaction with the page.