Thanks for the suggestion, I didn't know about that flag. That definitely seems like the way to go.
I updated the post with your code example.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.