My website is very JavaScript-heavy. All the content of the site is loaded asynchronously using JavaScript. So my developers implemented cloaking - server sends a static version of the webpage if it's requested by Googlebot. I recently found out that is called cloaking and considered a black hat SEO technique.
I'm wondering what are the consequences? Is there any way to measure what is the effect of using using this technique to site's search rankings?