Well that's sort of a separate question, my point is that if I pay $5 for someone to cook me a hot dog, 1 hot dog is produced whether sales tax is 0% or 50%, and that's what GDP is measuring.
The gdp measures the hot dog and the transaction costs of the hotdog so you buying the hotdog adds both hot dog, cart vendor and health inspector and permit office into the mix.