"To get/do something right" = to understand something correctly, or to do something correctly.
To get it right = to have done it correctly.
e.g.: "I tried several times, but was not able to get it right. later he showed me the way, and I was able to do it successfully".