Hello.
This question is more about PHP than about the plugin.
You need to use a universal snippet, since PHP code can be used in it.
To get the current URL, use this code
$url = ((!empty($_SERVER['HTTPS'])) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
echo $url;