Overview
GitHub is the world's largest software development platform, owned by Microsoft. On third-party websites, GitHub appears through embedded Gist code snippets, GitHub Buttons (star/fork/follow widgets), GitHub Badges, and repository statistics widgets. These embeds load JavaScript directly from github.com or buttons.github.io, which in turn may set GitHub cookies in the visitor's browser and transmit data to GitHub/Microsoft servers.
What This Script Does
GitHub Gist Embeds
A Gist embed inserts a <script src="https://gist.github.com/{user}/{gist-id}.js"> tag. This script dynamically injects a styled <div> containing the Gist's code content. When the script loads, GitHub's servers receive the visitor's IP address, user-agent, and referrer, and any GitHub session cookies present in the browser are sent along with the request.
GitHub Buttons
The GitHub Buttons library (buttons.github.io/buttons.js) renders interactive star, fork, and follow count widgets. It loads an iframe from ghbtns.com that communicates with the GitHub API to display real-time repository statistics. The iframe context may read GitHub session cookies.
GitHub Stats Badges
Some sites embed GitHub stats images or dynamic SVG badges that make requests to github.com or third-party GitHub stat services. These are typically not JavaScript-based and set no cookies.
Cookies Set
GitHub does not set new tracking cookies via embeds on third-party sites, but if the visitor is logged into GitHub, the following cookies are sent with requests to github.com:
_gh_sess— Third-party session cookie ongithub.com. GitHub's session authentication cookie. Duration: session.user_session— Third-party persistent cookie ongithub.com. Stores the persistent GitHub login session. Duration: 2 weeks.dotcom_user— Third-party persistent cookie ongithub.com. Stores the current GitHub username. Duration: 1 year.logged_in— Third-party persistent cookie ongithub.com. Boolean flag indicating whether the user is signed in. Duration: 1 year._octo— Third-party persistent cookie ongithub.com. GitHub's telemetry and analytics cookie. Duration: 1 year.
Domains Contacted
gist.github.com— Gist embed JavaScript served from here.github.com— Repository data and API requests for button widgets.ghbtns.com— GitHub Buttons iframe CDN.buttons.github.io— GitHub Buttons JavaScript library.
Data Collected Per Interaction
- Referrer URL (the page embedding the GitHub widget)
- Visitor IP address
- Browser user-agent and language
- GitHub account identity if the visitor is logged into GitHub (GitHub session cookies are sent with every request to
github.com) - Repository interaction events (star, fork, follow) if the user is authenticated and clicks a button widget
Consent & Compliance
GDPR / ePrivacy: GitHub Gist and Button embeds cause the visitor's browser to make requests to github.com, which transmits the visitor's IP address and any GitHub session cookies. Under GDPR, transmitting a logged-in user's GitHub identity to GitHub's servers — even as a side effect of loading an embedded widget — constitutes personal data processing by GitHub as a data controller. The German DSK and other EU DPAs have addressed the principle that third-party resource embeds which transmit personal data require a lawful basis. For embeds loaded on every page view, consent is typically required.
CCPA / CPRA: GitHub (Microsoft) may receive personal information (IP, GitHub identity) from visitors to third-party sites via Gist or Button embeds. Operators should disclose GitHub in their privacy policy if using these embeds.
EU-US Data Privacy Framework: GitHub/Microsoft is certified under the EU-US DPF. Microsoft's standard SCCs apply to GitHub data processing.
Consent Category: Functional. GitHub embeds serve a presentational purpose (displaying code, repository statistics) rather than advertising or behavioral profiling.
Should You Block This Without Consent?
No. GitHub embeds serve a functional purpose — displaying code snippets or repository statistics. They do not perform advertising profiling or behavioral tracking. While IP address and session data are transmitted to GitHub's servers, this is incidental to the functional embed rather than a tracking purpose. However, operators in strict EU compliance environments may wish to self-host Gist content or use static code blocks to avoid any third-party network requests to GitHub, particularly since logged-in GitHub users have their identity disclosed to GitHub on every embed load.
Is GitHub GDPR compliant?
GitHub typically loads functional trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So GitHub can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads GitHub, not on GitHub itself.
Consent Categories
Also Known As
Industries
Tracked Domains (53)
GitHub's trackers are rarely seen, seen on under 1% of the sites ConsentStack has scanned. Scan your own site to see which of these are firing before consent.
github.comEssentialgithub.com is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on under 1% of scanned sites.
buttons.github.ioEssentialbuttons.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
mreq.github.ioEssentialmreq.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
kenwheeler.github.ioEssentialkenwheeler.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
purecatamphetamine.github.ioEssentialpurecatamphetamine.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
fluorescent.github.ioEssentialfluorescent.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
googleads.github.ioEssentialgoogleads.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
hatscripts.github.ioEssentialhatscripts.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
hammerjs.github.ioEssentialhammerjs.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
mindmup.github.ioEssentialmindmup.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
theajack.github.ioEssentialtheajack.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
gitcdn.github.ioEssentialgitcdn.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
tufts-technology-services.github.ioEssentialtufts-technology-services.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
servicesem.github.ioEssentialservicesem.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
wet-boew.github.ioEssentialwet-boew.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
malsup.github.ioEssentialmalsup.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
kodir2.github.ioEssentialkodir2.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
vli-platform.github.ioEssentialvli-platform.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
touhidul002.github.ioEssentialtouhidul002.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
twitter.github.ioEssentialtwitter.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
s9e.github.ioEssentials9e.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
owlcarousel2.github.ioEssentialowlcarousel2.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
ewwwin.github.ioEssentialewwwin.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
frantisekfr.github.ioEssentialfrantisekfr.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
yubinbango.github.ioEssentialyubinbango.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
htmlxm.github.ioEssentialhtmlxm.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
afarkas.github.ioEssentialafarkas.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
malihu.github.ioEssentialmalihu.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
kjur.github.ioEssentialkjur.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
highcharts.github.ioEssentialhighcharts.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
thurnix01.github.ioEssentialthurnix01.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
fbhs-outdoors-digital.github.ioEssentialfbhs-outdoors-digital.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
verinice.github.ioEssentialverinice.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
liveperson-pmi.github.ioEssentialliveperson-pmi.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
artemsedin74.github.ioEssentialartemsedin74.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
atugatran.github.ioEssentialatugatran.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
classroomjq.github.ioEssentialclassroomjq.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
dialogintelligens.github.ioEssentialdialogintelligens.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
embl-communications.github.ioEssentialembl-communications.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
flutter.github.ioEssentialflutter.github.io is an essential domain operated by GitHub, used to keep the site working, including security, load balancing, and sessions. Seen on a small share of scanned sites.
Frequently Asked Questions
Related Vendors

Manage consent for GitHub
ConsentStack automatically detects and manages GitHub trackers so your site stays compliant with global privacy regulations.