The donations are income
the gift card is an expense
on the P&L income is reduced by expense
Also note that a giveaway of a gift card over $25 is subject to 1099-misc reporting, if the person has been paid more than $600 that year - need to track it just incase