Search API: Conversion Method

Follow

 Description

  • Records a conversion. Returns a deferred object.

Parameters:

  • url
    • The URL that was acted on, such as a click or open action.

Callbacks

  • success ()
    • Indicates that the conversion was stored successfully.
  • error(message)
    • Indicates that an error occurred, with the relative error message as a parameter.
  • always
    • Indicates that the HTTP request to the search server has completed.

Example

Description

<script>
Agility.Search.Conversion(
{
url: 'https://www.agilitycms.com/products/agility-search'
},
function(resp){
//success
},
function(err){
//error
},
function(){
//always
}
);
</script>
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.