Add global analytics code