Make userParam depend on ID
All checks were successful
Deploy / build-and-publish (push) Successful in 1m42s
Deploy / deploy (push) Successful in 20s

This commit is contained in:
Kopyl Anatoly
2024-12-11 19:14:18 +03:00
parent ebeee6cfe6
commit 1f4c3ceba2

View File

@@ -20,9 +20,13 @@
trackLinks: true, trackLinks: true,
accurateTrackBounce: true, accurateTrackBounce: true,
webvisor: true, webvisor: true,
userParams: { });
university_test_group: Math.random() > .5 ? 'a' : 'b'
}
ym(88895893, "getClientID", function (clientID) {
ym(88895893, 'userParams', {
university_test_group: clientID % 2 === 0 ? 'a' : 'b'
});
}); });
</script> </script>
<noscript> <noscript>