Solved

Track Events Metric DEPRECATED

  • 9 June 2023
  • 3 replies
  • 143 views

Userlevel 2
Badge +5

Has the Track API Endpoint been DEPRECATED? If so, is there another alternative or perhaps I’m not seeing it in the new API versions? This options is so powerful and I’m using it in a ton of scenerios. 

Any updates on the Track API would be appreciated?

icon

Best answer by jmacman 9 June 2023, 17:21

View original

3 replies

Userlevel 2
Badge +5

Ok, I see the new event has been changed to Create Event using the new API. Hopefully someone can help me out as I am terrible with APIs. I’m using Integromat using the custom API. Can anyone tell me what I’m doing wrong as far as the Error Messages

 

JSON Param

{
  "data": {
    "type": "event",
    "attributes": {
      "profile": {
        "email ": "email@email.com"
      },
      "metric": {
        "name": "User Logged In"
      },
      "properties": {
        "email": "email@email.com"
      },
      "time": "{{now}}"
    }
  }
}

 

  • status

    400

  • code

    invalid

  • title

    Invalid input.

  • detail

    At least one profile identifier is requiredAny email must be valid. This request failed with reason: missing valid identifier.

Video Here - 

 

Userlevel 2
Badge +5

I figured it out:

 

{
  "data": {
    "type": "event",
    "attributes": {
      "profile": {
        "$email": "{{1.email}}"
      },
      "metric": {
        "name": "User Logged In"
      },
      "properties": {
        "email": "{{1.email}}"
      },
      "time": "{{now}}"
    }
  }
}

Userlevel 7
Badge +36

 Hi @jmacman!

I’m glad you figured it out! Thanks so much for sharing your solution, it’s so helpful for other members to see a full-cycle problem → solution like this!

 

For future reference or for anyone else that sees this thread, here’s our comparison guide that explains which new API endpoints correspond to each legacy endpoint:

Best,

Brian

Reply