analytics: add base classes
analytics: improvements in tracker. needed more tests
example: updated with new analytics structure