added proof of concept for uploading cost data to google analytics with javascript