Remove trailing whitespace from source.
If utm params are present always take those values. Store in a cookie anytime the utm params are present.