Danone is using QR codes on product packs in Spain to encourage consumers to sign up to a loyalty programme that offers discounts.