track:clicks

Description

Usage

as element:
<track:clicks
       [query="{query}"]
       [type="{string}"]
       [response="{string}"]
       [fields="{string|expression}"]
       [any_attribute="{string}"]>
</track:clicks>

Parameters

Param Type Details
query
(optional)
query

The name of the query associated with the click.

type
(optional)
string

Type of click event, (Default: link or result if click event happens in a search:result)

response
(optional)
string

The name of the response to get the fact called tracking from so that this information can be sent to the activity endpoint. If a response is not provided and the click happens in a Search Result List we will get the name of the response from the result-list if applicable.

fields
(optional)
stringexpression

If the click happens within a result send the following fields (comma separated) to the endpoint. (e.g - name,title,url)

any_attribute
(optional)
string

You can add any custom attribute here such as foo="bar" and this data will be sent to the endpoint. The attribute must not start with ng- and also cannot be url,label,type,query,offset,pos,fields,id, response or class.

Example

Source





Demo