on Just Publishing Advice:
When do you use a comma before which?
The answer is easy.
Yes. You use a comma when the word which introduces a nonrestrictive phrase, which is also called a non-defining clause.
No. You don’t add a comma when which comes before a restrictive or defining clause.
No. There is no comma when which forms an indirect or direct question or is part of a prepositional phrase.