Sales Tracking Analytics?

Is there anyway we as authors can integrate some form of tracking or analytics into our campaigns? Obviously we have the Envato data, but it doesn’t go very deep.

I tried to add Google Analytics to some of my items, but the code did not work. Is there anyway we can add Google Analytics or other tracking code to our pages so we can make intelligent decisions about how we are presenting our products?