?q=foo
), not other methods of sending the query parameters.<scheme>://<hostname>[:<port>]
. For example, https://domain.your_company_name.com
.
<head>
tag of your website’s HTML file.
window.logBeaconInfo()
function which you can use with your browser’s developer tools to inspect the fields captured by the beacon so that you can validate and refine your configuration.[productPath|fields]
.[query/click/cartAdd/purchase].productPath
. The default is .lw-product-item
.cartId
value defaults to lwRetailCartId
. The beacon obtains the value from localStorage.lwRetailCartId
when attaching cart info to /retail/signals/cartadd
and /retail/signals/purchase
.[price, quantity, revenue]
.productId
field with a value of scope@id
is the only required field to use the Lucidworks Retail Beacon API.query
, if the current product page is filtered with the keyword hat
, the URL parameter is http://example.com?query=hat. The default value is query
.1000
.button.add-to-bag, #AddToBagWithPrice
.button.add-to-bag, #AddToBagWithPrice
."fields"
.
This section shows you how to configure your field paths, with examples.
The format is: [Element CSS Selector]@[Value Attribute]
These special selectors and attributes are available:
@text
pseudo-attribute captures the inner text node.:scope
CSS class targets product details defined on the root product element.window.logBeaconInfo()
debugging utility that logs verbose information if the debug flag is enabled.
To enable the debug flag in your local storage, set localStorage.enableBeaconDev = true
.