client: script for analytics