Add basic analytics snippet

- No user identification.
- Tracks page views/hash states.
- One custom event atm for tracking the type of layer added to a source.