AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
2.4K members online now
2.4K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Information about a cookie of Google Analytics named _gid

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello,

 

I have implemented the code of Google Analytics in my web page and it looks works fine but when I saw the cookies I found three: _ga and _gat that are Known but I also found another cookie named _gid and there isn't information about it.

Can someone tell me something about this cookie?

 

Thanks and best regards,

Julio.

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Julio S
June 2017

Information about a cookie of Google Analytics named _gid

Follower ✭ ☆ ☆
# 8
Follower ✭ ☆ ☆

When using GA’s Universal Analytics, the analytics.js library sets cookies to both identify and throttle requests.

 

_ga is used to distinguish users and has an expiration of 2-years.

_gid is used to distinguish users and has an expiration of 24-hours.

_gat is used to throttle requests and has an expiration of 10-minutes.

 

In all cases, the value format is:

Version.Depth.UniqueID.CreationTimeStamp

 

Where:

            Version = GA version

            Depth = 2 for Top Level Domain, 3+ for Subs, etc.

            UniqueID = Random Number

            CreationTimeStamp = Epoch Time When Cookie Was Created

 

UniqueID + CreationTimeStamp is what is used to create Client ID.

 

Hope this helps,

A2

View solution in original post

Information about a cookie of Google Analytics named _gid

A T
Participant ✭ ✭ ✭
# 2
A T
Participant ✭ ✭ ✭

can you give a screenshot of the cookie details?

Re: Information about a cookie of Google Analytics named _gid

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Screenshot attached. This one first started appearing around March 20, and now it's causing a 403 (Access Forbidden) error on our site. Any advice about how to get rid of it?

cookie_gid.png

Information about a cookie of Google Analytics named _gid

Badged Google Partner
# 4
Badged Google Partner

I'd also appreciate some information about this cookie.

Information about a cookie of Google Analytics named _gid

A T
Participant ✭ ✭ ✭
# 5
A T
Participant ✭ ✭ ✭

I tried searching a lot. But the value shown above is generally stored in _ga cookie.

 

Which version of GA code have you implemented?

Can you share the snippet / website url?

Have you done any customization in the code?

 

some reference:

 

http://stackoverflow.com/questions/16102436/what-are-the-values-in-ga-cookie

https://www.optimizesmart.com/google-analytics-cookies-ultimate-guide/

Information about a cookie of Google Analytics named _gid

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭

Just started seeing this - but the value store in _gid is slightly different to _ga

 

Whereas _ga has a stable unique ID across pages, it appears that _gid has a different ID for each page set on, and a timestamp.  This suggests it has a specific purpose - perhaps to do with plotting user journeys

Information about a cookie of Google Analytics named _gid

[ Edited ]
Visitor ✭ ✭ ✭
# 7
Visitor ✭ ✭ ✭

Hi,

 

I have implemented the next code:

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-8810XXXX-X', 'auto');
ga('send', 'pageview');

 

The URL of the site is: www.txanoyoscar.com

I haven´t do any personalization in the code.

 

I attach a screeshot of the cookie page:

 

Cookies.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Thanks!

Julio

Marked as Best Answer.
Solution
Accepted by topic author Julio S
June 2017

Information about a cookie of Google Analytics named _gid

Follower ✭ ☆ ☆
# 8
Follower ✭ ☆ ☆

When using GA’s Universal Analytics, the analytics.js library sets cookies to both identify and throttle requests.

 

_ga is used to distinguish users and has an expiration of 2-years.

_gid is used to distinguish users and has an expiration of 24-hours.

_gat is used to throttle requests and has an expiration of 10-minutes.

 

In all cases, the value format is:

Version.Depth.UniqueID.CreationTimeStamp

 

Where:

            Version = GA version

            Depth = 2 for Top Level Domain, 3+ for Subs, etc.

            UniqueID = Random Number

            CreationTimeStamp = Epoch Time When Cookie Was Created

 

UniqueID + CreationTimeStamp is what is used to create Client ID.

 

Hope this helps,

A2