This is a demo for Elegantly integrate Mixpanel with your Rails app using built-in instrumentation on dev.to.
You should be able to run this able with the following minimal setup:
rails db:migrate
rails credentials:edit --environment development
When your editor opens, add the token to a new Mixpanel project to the YAML as follow:
mixpanel_token: [token]
Now you can run the app as follows:
rails s -p 3000
And open this page.