Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hashaam/8305287fc6a96310a01899714d74ce7e to your computer and use it in GitHub Desktop.
Save hashaam/8305287fc6a96310a01899714d74ce7e to your computer and use it in GitHub Desktop.
Calling Get Specific URLQueryItem from URLComponents
// https://hashaam.com/2017/09/02/get-specific-urlqueryitem-from-urlcomponents
if let utmTermValue = queryParam(urlString: "http://www.example.com/?utm_source=adsite&utm_campaign=adcampaign&utm_term=adkeyword", param: "utm_term") {
// handle utmTermValue
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment