segmentio/snippet — pull request #16 by yields (2014-11-11 23:42:16+00:00)
Title: fix: make sure the snippet is included once

closes #15

- checks for `analytics.included`
- if it's `true`, checks for `console.error` and logs an error
- if it's not `included` it will invoke the snippet

this solves the stack call exceeded errors, when users inadvertently include the snippet twice :/

cc @calvinfo