Preparing search index...
The search index is not available
@bridgeline-digital/hawksearch-handlebars-ui
@bridgeline-digital/hawksearch-handlebars-ui
Services
TrackingService
Class TrackingService
Hierarchy
BaseService
TrackingService
Index
Constructors
constructor
Properties
base
Url
query
String
Params
search
Url
Methods
generate
Guid
get
Url
get
Visit
Id
get
Visitor
Id
http
Post
strip
Html
track
Add
To
Cart
track
Add
To
Cart
Multiple
track
Autocomplete
Click
track
Banner
Click
track
Banner
Impression
track
Event
track
Order
track
Page
Load
track
Rating
track
Recommendation
Click
track
Search
track
Search
Result
Click
trigger
Bind
Event
trigger
Event
Constructors
constructor
new
Tracking
Service
(
)
:
TrackingService
Returns
TrackingService
Properties
Protected
base
Url
base
Url
:
string
= ...
query
String
Params
query
String
Params
:
{
disableSpellcheck
:
string
;
facet
:
string
;
page
:
string
;
pageSize
:
string
;
query
:
string
;
searchWithin
:
string
;
sort
:
string
;
}
= ...
Type declaration
disable
Spellcheck
:
string
facet
:
string
page
:
string
page
Size
:
string
query
:
string
search
Within
:
string
sort
:
string
search
Url
search
Url
:
string
= ...
Methods
Protected
generate
Guid
generate
Guid
(
)
:
string
Returns
string
Protected
get
Url
get
Url
(
prefix
:
undefined
|
string
, url
:
undefined
|
string
)
:
undefined
|
string
Parameters
prefix:
undefined
|
string
url:
undefined
|
string
Returns
undefined
|
string
Protected
get
Visit
Id
get
Visit
Id
(
)
:
string
Returns
string
Protected
get
Visitor
Id
get
Visitor
Id
(
)
:
string
Returns
string
Protected
http
Post
http
Post
<
T
>
(
relativeUrl
:
string
, body
?:
any
)
:
Promise
<
T
>
Type Parameters
T
Parameters
relativeUrl:
string
Optional
body:
any
Returns
Promise
<
T
>
Protected
strip
Html
strip
Html
(
input
:
string
)
:
string
Parameters
input:
string
Returns
string
track
Add
To
Cart
track
Add
To
Cart
(
productId
:
string
, quantity
:
number
, price
:
number
, currencyIsoCode
:
string
)
:
Promise
<
void
>
Parameters
productId:
string
quantity:
number
price:
number
currencyIsoCode:
string
Returns
Promise
<
void
>
track
Add
To
Cart
Multiple
track
Add
To
Cart
Multiple
(
items
:
{
currencyIsoCode
:
string
;
price
:
number
;
productId
:
string
;
quantity
:
number
;
}
[]
)
:
Promise
<
void
>
Parameters
items:
{
currencyIsoCode
:
string
;
price
:
number
;
productId
:
string
;
quantity
:
number
;
}
[]
Returns
Promise
<
void
>
track
Autocomplete
Click
track
Autocomplete
Click
(
query
:
string
, itemType
:
AutocompleteItemType
, title
:
string
, url
:
string
)
:
Promise
<
void
>
Parameters
query:
string
itemType:
AutocompleteItemType
title:
string
url:
string
Returns
Promise
<
void
>
track
Banner
Click
track
Banner
Click
(
bannerId
:
number
, campaignId
:
number
)
:
Promise
<
void
>
Parameters
bannerId:
number
campaignId:
number
Returns
Promise
<
void
>
track
Banner
Impression
track
Banner
Impression
(
bannerId
:
number
, campaignId
:
number
)
:
Promise
<
void
>
Parameters
bannerId:
number
campaignId:
number
Returns
Promise
<
void
>
track
Event
track
Event
(
type
:
EventType
, data
:
any
)
:
Promise
<
void
>
Parameters
type:
EventType
data:
any
Returns
Promise
<
void
>
track
Order
track
Order
(
orderId
:
string
, items
:
{
price
:
number
;
productId
:
string
;
quantity
:
number
;
}
[]
, subTotal
:
number
, tax
:
number
, total
:
number
, currencyIsoCode
:
string
)
:
Promise
<
void
>
Parameters
orderId:
string
items:
{
price
:
number
;
productId
:
string
;
quantity
:
number
;
}
[]
subTotal:
number
tax:
number
total:
number
currencyIsoCode:
string
Returns
Promise
<
void
>
track
Page
Load
track
Page
Load
(
pageType
:
PageType
, productId
?:
string
)
:
Promise
<
void
>
Parameters
pageType:
PageType
Optional
productId:
string
Returns
Promise
<
void
>
track
Rating
track
Rating
(
productId
:
string
, rating
:
number
)
:
Promise
<
void
>
Parameters
productId:
string
rating:
number
Returns
Promise
<
void
>
track
Recommendation
Click
track
Recommendation
Click
(
widgetId
:
string
, requestId
:
string
, productId
:
string
)
:
Promise
<
void
>
Parameters
widgetId:
string
requestId:
string
productId:
string
Returns
Promise
<
void
>
track
Search
track
Search
(
query
:
undefined
|
string
, newSearch
:
boolean
)
:
Promise
<
void
>
Parameters
query:
undefined
|
string
newSearch:
boolean
Returns
Promise
<
void
>
track
Search
Result
Click
track
Search
Result
Click
(
id
:
string
, url
:
string
, event
?:
PointerEvent
)
:
Promise
<
void
>
Parameters
id:
string
url:
string
Optional
event:
PointerEvent
Returns
Promise
<
void
>
Protected
trigger
Bind
Event
trigger
Bind
Event
<
T
>
(
component
:
keyof
HawkSearchComponents
, data
:
T
, filter
?:
string
)
:
void
Type Parameters
T
Parameters
component:
keyof
HawkSearchComponents
data:
T
Optional
filter:
string
Returns
void
Protected
trigger
Event
trigger
Event
<
T
>
(
name
:
string
, data
:
T
)
:
void
Type Parameters
T
Parameters
name:
string
data:
T
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Modules
@bridgeline-
digital/hawksearch-
handlebars-
ui
Components
Configuration
Helpers
Models
Services
Tracking
Service
constructor
base
Url
query
String
Params
search
Url
generate
Guid
get
Url
get
Visit
Id
get
Visitor
Id
http
Post
strip
Html
track
Add
To
Cart
track
Add
To
Cart
Multiple
track
Autocomplete
Click
track
Banner
Click
track
Banner
Impression
track
Event
track
Order
track
Page
Load
track
Rating
track
Recommendation
Click
track
Search
track
Search
Result
Click
trigger
Bind
Event
trigger
Event