Add script for sending analytics on cookie events.