Create CSV of query parameters based on redirecting URL