add segment js for analytics
add dotenv gem