Insights

Insights allow you to add track user interactions with the inventory and later use those insights in other platforms for personalization and statistics.

A public API token with "insights.write" permissions is required to push events onto autoZnetwork.

Using events you can track actions taken by a user from an external application. Events supported are listed below.

EventDescription
vehicle_viewedOccurs when a user views a vehicle VDP.
vehicle_savedOccurs when a user saves a vehicle to a profile or garage.
vehicle_vdp_leadOccurs when a user submits a lead from a VDP.
vehicle_srp_leadOccurs when a user submits a lead from an SRP.

A POST request can be made to https://insights.autoznetwork.com/v1/event to track events.

CURL
  AUTOZNETWORK_TOKEN="your API token"
  AUTOZNETWORK_ORG_ID="your organization id"

  curl -X POST https://insights.autoznetwork.com/v1/event/{EVENT} \
    -H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
    -H "X-AutozNetwork-Organization-Id: $AUTOZNETWORK_ORG_ID" \
    -H 'Accept: application/json'
    -d '{
      "application": "autozio",
    }'

You may also pass the event as a parameter as seen below

CURL
  AUTOZNETWORK_TOKEN="your API token"
  AUTOZNETWORK_ORG_ID="your organization id"

  curl -X POST https://insights.autoznetwork.com/v1/event/{EVENT} \
    -H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
    -H "X-AutozNetwork-Organization-Id: $AUTOZNETWORK_ORG_ID" \
    -H 'Accept: application/json'
    -d '{
      "application": "autozio",
      "event": "vehicle_clicked",
    }'