Last active
September 2, 2017 09:12
-
-
Save hashaam/8305287fc6a96310a01899714d74ce7e to your computer and use it in GitHub Desktop.
Calling Get Specific URLQueryItem from URLComponents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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