If you want to invest in gold, make sure you know how the value of the precious metal has changed over time.