How do I track the performance of dynamic links created with the REST API (programmatically) in the Firebase console?

Viewed 2255

I'm using jQuery ajax request to make dynamic links but it doesn't show up in firebase dynamic links analytic console to keep track of its events. as per firebase documentation (https://firebase.google.com/docs/dynamic-links/create-links), it supposed to do so... any insight will be highly appreciated ...

    $.ajax({
    type: "POST",
    url: "https://firebasedynamiclinks.googleapis.com/v1/shortLinks?key=" + api_key,
    contentType: "application/json",
    processData: false,
    data:JSON.stringify({
      "dynamicLinkInfo": {
        "dynamicLinkDomain": "yx55s.app.goo.gl",
        "link": cLink,
          "socialMetaTagInfo": {
            "socialTitle": sTitle,
            "socialDescription": sDesc,
            "socialImageLink": sImg
          }
        },
        "suffix": {
          "option": option
        }
      })
  }).done(function(links){
    console.log(links);
    $('.response').text(links.shortLink);
  });
})
2 Answers
Related