Append a query string to the end of every URL

The problem is that I used the wrong type of quote marks. You cannot see it in my first post because apparently they were changed when I pasted in the code.

enter image description here