The charity fundraiser is available at most US locations and the free shake code is good through September 30, 2019 at participating locations. While you have to donate the $2 in person, you cannot use the code at the cash register or kiosk (it's in-app or online only).
The shake at Shake Shack normally goes for about $5.99.
Photo via Shake Shack.