This app allows you to effortlessly add Segment's wonderful analytics platform to your website or blog.

Install

Or if your prefer, you can grab the source from here.

References