Explore fundamentals of KRL and building rules.
The following exercises will use skills you learned in the Quickstart, but you won't be deploying your app on SquareTag.
ktest.heroku.com
. You will need to register it using KDK, but you won't have to install it in SquareTag for it to run on ktest
. url
function in the page
library helpful. <key0>=<value0>&<key1>=<value1>...
) returns the value of the key name
. (Hint, regular expressions and the string operators will be useful here.) Use function with the query string to modify the rule from (3) so that the notification says "Hello " followed by the value of the key name
. Do not assume that the query string will contain only one key-value pair. So, if the url were http://ktest.heroku.com/b16x12232?name=Phil
, the notification would say "Hello Phil". Be sure you still default to "Hello Monkey" if there is no query string or there is no key called name
.clear
is given in exampley.com URL.