Giter Club home page Giter Club logo

Comments (3)

kelvin-lu avatar kelvin-lu commented on August 20, 2024

Hey @tommedema,

We'll be looking to fix this in the near future. In the meantime, you are correct in that the SDK passes them directly to the user_properties prop and you can construct your own identify events as well:

amplitudeClient.logEvent({
  event_type: '$identify',
  user_properties: {
    $set: deepObj,
  },
  device_id: ...
  user_id: ...
})

from amplitude-node.

tommedema avatar tommedema commented on August 20, 2024

@kelvin-lu we are getting this: WARN Amplitude Logger [Warn]: On Identify operation $set : invalid value type object . Skipping operation

when using it like so:

const identify = new Identify()

// See https://github.com/amplitude/Amplitude-Node/issues/83 on why we need to type cast to `any` here
identify.set('clearbit', clearbitData as any)

await amplitude.identify(userId, deviceId, identify)

is there any way around this while using the identify library?

from amplitude-node.

yuhao900914 avatar yuhao900914 commented on August 20, 2024

Hi @tommedema , sorry for the late reply.
Want to give you an update that the latest version of node, v1.5.3, solved this issue. The identify is able to accept deep objects now. Please try it out.
Will close this issue.
Thanks.

from amplitude-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.