fixes #91 add analyticstracking code