Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getClientId(){
- var clid = undefined;
- var match = document.cookie.match('(?:^|;)\\s*_ga=([^;]*)');
- var raw = (match) ? decodeURIComponent(match[1]) : null;
- if (raw)
- {
- match = raw.match(/(\d+\.\d+)$/);
- }
- var gacid = (match) ? match[1] : null;
- if (gacid)
- {
- clid=gacid;
- }else{
- clid=(gga_obj && 'clientId' in gga_obj)?gga_obj['clientId']:undefined;
- }
- return clid;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement