Click-through rate is calculated by dividing the number of clicks by the number of times the link was viewed.