Giter Site home page Giter Site logo

Comments (3)

travisjeffery avatar travisjeffery commented on July 23, 2024

Hey! Thanks for the issue!

I think there was an issue that I've fixed in a later version. Yes, in v2 there were some API changes. I can help you with the changes you need to make though.

The change you'd need to make to get it working is to initialize an Analytics instance (rather than using a singleton) and give it a write_key (used to be secret)

e.g. assuming you're using Rails, create a config/initializers/analytics_ruby.rb file and in it put:

Analytics = Segment::Analytics.new(:write_key => "your project's write key")

and update your Gemfile to install the SDK with:

gem 'analytics-ruby', '~> 2.0.0', :require => 'segment/analytics'

Let me know if something isn't clear.

Thanks

from analytics-ruby.

ErisDS avatar ErisDS commented on July 23, 2024

@travisjeffery Thanks for the explanation, I've now got it working with:

    Analytics.identify(
      user_id: current_user.id,
      traits: { email: current_user.email_address, username: current_user.username },
      integrations: { Intercom: false }
  ) 

from analytics-ruby.

travisjeffery avatar travisjeffery commented on July 23, 2024

Awesome! Glad to help.

from analytics-ruby.

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.