Make userParam depend on ID
This commit is contained in:
10
src/app.html
10
src/app.html
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user