We help IT Professionals succeed at work.

Why is ?_ga=2.1xxxxxxxx.....   added to my URL?

Why do some of my .aspx pages add this to the URL? (ex. www.url.com/filename.aspx?_ga=2.176514797.910954863.1579199334-2140930447.1563381308

I don't know why it adds ?_ga=2.176514797.910954863.1579199334-2140930447.1563381308 to the end of the URL when I bring the file up in the browser. Is that something that I'm doing wrong?
Comment
Watch Question

David FavorFractional CTO
Distinguished Expert 2019

Commented:
You're referring to a query parameter.

The site www.url.com added this query parameter, so only the owner of this site can tell you why this was added.

You'll open a support ticket with the site www.url.com for specific information about their URL generation.

Author

Commented:
Thank you @David Favor for the feedback. Ok. I am familiar with query parameters.  I use them sometimes when I want to communicate with a database.   I created these pages.  After I save them and look at them in the browser the query parameter is there but I'm not pulling anything from a database and I didn't add them.  These are basically static pages.  That's why I'm confused as to why they are there.
Scott FellDeveloper & EE Moderator
Fellow 2018
Most Valuable Expert 2013
Commented:
That is google analytics.  Some links will carry that over for tracking.  It is nothing in the back end code it is the javascript that google ads. Can you let us know the site or link you are referring to?
Developer & EE Moderator
Fellow 2018
Most Valuable Expert 2013
Commented:
Based on that number you are showing, I am pretty sure that is a unique user id https://support.google.com/analytics/answer/3123662?hl=en that follows you. It is how google knows you came to the site x times over y time period. It is typically in a cookie though. I have seen where it shows up in links.

Author

Commented:
Thank you for that explanation.  It was extremely helpful.