Script analytics