Visit (GET)

Endpoint

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

Parameters

Identification of the client

The following parameters are provided by Mediego.

Identification of the user

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

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.

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    
}

Visit (POST)

Endpoint

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

Parameters

The parameters are the same as the GET version. However, they are sent as a JSON object in the body of the request.

{
  "engine": string,
  "debug": boolean,
 
  "euid": string,
  "muid": string,
 
  "referrer": string,
  "eiid": string,
  "miid": string
}

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

Response

Success

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

Error

{
    "error": string // Description of the error    
}
Did this answer your question?