A law firm has found TikTok—the app known for short videos of people dancing, singing, playing with pets and doing almost anything else—to be a remarkably effective marketing tool.

Brown & Dutton, a Marietta family law firm, drew one million views of partner Jenni Brown pointing to word clouds identifying behaviors that suggest an affair.