Added language to UserAction for metrics

This commit is contained in:
Unick Soft 2018-01-28 22:16:39 +03:00
parent f9659dee24
commit 092a4f1a4b

View File

@ -5,8 +5,8 @@ var userAction = function(str)
{ {
if (typeof window.yaCounter25827098 !== "undefined") if (typeof window.yaCounter25827098 !== "undefined")
{ {
console.log(str); console.log(g_language + "/" + str);
window.yaCounter25827098.hit("http://" + window.location.hostname + "/UserAction#" + str); window.yaCounter25827098.hit("http://" + window.location.hostname + "/" + g_language + "/UserAction#" + str);
} }
else if (!waitCounter) else if (!waitCounter)
{ {