Tracking

Visit

Endpoint

GET https://api.mediego.com/1.0/track/visit

Parameters

Identification of the client

The following parameters are provided by Mediego.

Name Description
engine Client ID
debug (optional) Specify if the request is only for debug and thus should not be recorded

Identification of the user

One of the following parameter is necessary to idenfity the user.

Name Description
euid Client user ID
muid Mediego user ID

Identification of the item

One of the following parameter is necessary to idenfity the item that the user is currently visiting. An item can be a web page an article or product.

Name Description
referrer URL of the visited page
eiid Client item ID
miid Mediego item ID

Response

Success

{
    "muid": string, // User ID generated by Mediego
    "timestamp": string, // Timestamp of the request
    "display_type": "defaut" | "prestashop", // Display mode for Web recommendations
    "requires_segmentation": boolean // Defines if a segmentation request should be sent
}

Error

{
    "error": string // Description of the error    
}

Click

Endpoint

GET https://api.mediego.com/1.0/track/click

Parameters

Name Description
ruuid Recommendation ID (defined in the result of a recommendation request)
debug (optional) Specify if the request is only for debug and thus should not be recorded

Response

Success

{
    "success": string, // Message describing the recorded click
}

Error

{
    "error": string // Description of the error    
}