"Government purchases include any spending by federal, state, and local agencies, with the exception of debt and transfer payments such as Social Security. Overall, government purchases are a key component of a nation's gross domestic product (GDP)."
Source: Investopedia
Conclusion: GDP is a terrible measurement how an economy is operating because a government can prop it up by spending more.