google optimize ใ่ชญใ
TL;DR
- google optimize ใงไป้ฉๅฟใใใฆใใใในใใฏไฝใ่ชฟในใ
- ใในใใฎ็ตๆใฏ first party cookie
_gaexp
ใจใใๅๅใง่จ้ฒใใใฆใใ- ่ฆ็ดใฏ่ชญใใง่ชๅทฑ่ฒฌไปปใงๅ็ งใใพใใใ
่ปฝใ่ชฟในใ็ตๆ
- ๅ
ฌ้ๆ
ๅ ฑ
_gaexp
ใจใใๅๅใง่จ้ฒใใใฆใใ- cookie ใฏใใใฉใซใ 90 ๆฅไฟๅญ
ใใใใๆไฝใใฆใใใจใใ
m[0]
ใฏexperimentid
m[2]
ใใในใใฎใใฟใผใณใ่กจใใฆใใ- cookie ใฎไธ็ชๆๅพใฎ number
- ใใใ ใใ ใจ
variationid
ใจใใฆใฏไฝฟใใชใใฎใงไฝใใจ่คๅใใฆใฆใใผใฏใซใชใฃใฆใใ
m[1]
ใฏ number ใ ใไฝใฎๅคใใฏใใใซใฏใใใใชใใฃใ
Zg = function (a, b) {
const c = b.match(/GAX1\.([^.]+).(.*)/);
if (c) {
let d;
a: {
const e = (c[1] || "").split("-");
if (!(e.length == 0 || e.length > 2)) {
const f = ia(e[0]);
if (f.length != 0) {
const g = e.length == 2 ? ia(e[1]) : "1";
if (uf(f) && uf(g)) {
d = new Og(T(f), T(g));
break a;
}
}
}
d = void 0;
}
if (d) {
for (
var h = new Qg(d, a.qa, a.ha), k = (c[2] || "").split("!"), l = 0;
l < k.length;
l++
) {
const m = k[l].split(".");
if (m.length == 3) {
if (!uf(m[1])) {
return;
}
Ug(h, m[0], new Pg(m[2], T(m[1])));
}
}
return h;
}
}
};
Extra
- stackoverflow
- AB ใในใใจใใฆ JavaScript ใๅฎ่กใงใใใฎใงใ่ชๅใงใฆใใผใฏใช ID ใ้ ไฟกใใฆๅฎ่กใใใฆใใใในใใ็นๅฎใใพใใใ
- ใชใใผในใจใณใธใใขใชใณใฐใใฆๅฑใชใ้ใๆธกใใใใ็พๅฎ็
- ใกใใใจ AB ใในใใฎ่จ้ฒใฏ่จๆธฌใงใใพใใใใ google analytics ใชใใญ๏ผ
Happy Hacking!