added script for analytics