Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Emits user events to segment.io

License

Notifications You must be signed in to change notification settings

discourse/discourse-segment-io-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discourse Segment.io Plug-in

Emits user events to segment.io

Current support

  • User identify
  • User Track "Signed Up"
  • User Track "Post Created"
  • User Track "Post Liked"
  • User Track "Topic Created"
  • User Track "Topic Tag Created"
  • User Page View

Usage

Once installed, the plugin will automatically push the supported events to Segment.io

Backfilling

If you'd like to trigger the segments for existing users, open up a rails console and run the following:

User.pluck(:id).each do |uid|
  Jobs.enqueue(:emit_segment_user_identify, user_id: uid)
end

Installation

Watch Tutorial Video: https://youtu.be/AKR3ki9Kj38

In segment.io you will need a ruby source to receive the incoming events.

Contributing

Please see CONTRIBUTING.md.

License

discourse-segment-io-plugin is Copyright © 2016 Kyle Welsby. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About

Emits user events to segment.io

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%