CINXE.COM
Google Analytics Cookie Usage on Websites | Analytics for Web (analytics.js) | Google for Developers
<!doctype html> <html lang="en" dir="ltr"> <head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage","20230530220139","https://web.archive.org/","web","/_static/", "1685484099"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <meta name="google-signin-client-id" content="721724668570-nbkv1cfusk7kk4eni4pjvepaus73b13t.apps.googleusercontent.com"> <meta name="google-signin-scope" content="profile email https://www.googleapis.com/auth/developerprofiles https://www.googleapis.com/auth/developerprofiles.award"> <meta property="og:site_name" content="Google for Developers"> <meta property="og:type" content="website"><meta name="robots" content="noindex"><meta name="theme-color" content="#e8710a"><meta charset="utf-8"> <meta content="IE=Edge" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="manifest" href="/web/20230530220139/https://developers.google.com/_pwa/developers/manifest.json" crossorigin="use-credentials"> <link rel="preconnect" href="//web.archive.org/web/20230530220139/https://www.gstatic.com/" crossorigin> <link rel="preconnect" href="//web.archive.org/web/20230530220139/https://fonts.gstatic.com/" crossorigin> <link rel="preconnect" href="//web.archive.org/web/20230530220139/https://fonts.googleapis.com/" crossorigin> <link rel="preconnect" href="//web.archive.org/web/20230530220139/https://apis.google.com/" crossorigin> <link rel="preconnect" href="//web.archive.org/web/20230530220139/https://www.google-analytics.com/" crossorigin><link rel="stylesheet" href="//web.archive.org/web/20230530220139cs_/https://fonts.googleapis.com/css?family=Google+Sans_old:400,500|Roboto:400,400italic,500,500italic,700,700italic|Roboto+Mono:400,500,700&display=swap"> <link rel="stylesheet" href="//web.archive.org/web/20230530220139cs_/https://fonts.googleapis.com/css2?family=Material+Icons&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block"><link rel="stylesheet" href="https://web.archive.org/web/20230530220139cs_/https://www.gstatic.com/devrel-devsite/prod/v4adef427db21a4cd79f489fce8da23c25ef3f53705a17ddcb0611ee166b2e610/developers/css/rebrand-app.css"> <link rel="shortcut icon" href="https://web.archive.org/web/20230530220139im_/https://www.gstatic.com/devrel-devsite/prod/v4adef427db21a4cd79f489fce8da23c25ef3f53705a17ddcb0611ee166b2e610/developers/images/favicon-new.png"> <link rel="apple-touch-icon" href="https://web.archive.org/web/20230530220139im_/https://www.gstatic.com/devrel-devsite/prod/v4adef427db21a4cd79f489fce8da23c25ef3f53705a17ddcb0611ee166b2e610/developers/images/touchicon-180-new.png"><link rel="canonical" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage"><link rel="search" type="application/opensearchdescription+xml" title="Google for Developers" href="https://web.archive.org/web/20230530220139/https://developers.google.com/s/opensearch.xml"> <link rel="alternate" hreflang="en" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage"/><link rel="alternate" hreflang="x-default" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage"/><link rel="alternate" hreflang="ar" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=ar"/><link rel="alternate" hreflang="bn" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=bn"/><link rel="alternate" hreflang="zh-Hans" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=zh-cn"/><link rel="alternate" hreflang="zh-Hant" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=zh-tw"/><link rel="alternate" hreflang="fa" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=fa"/><link rel="alternate" hreflang="fr" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=fr"/><link rel="alternate" hreflang="de" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=de"/><link rel="alternate" hreflang="he" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=he"/><link rel="alternate" hreflang="hi" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=hi"/><link rel="alternate" hreflang="id" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=id"/><link rel="alternate" hreflang="it" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=it"/><link rel="alternate" hreflang="ja" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=ja"/><link rel="alternate" hreflang="ko" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=ko"/><link rel="alternate" hreflang="pl" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=pl"/><link rel="alternate" hreflang="pt-BR" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=pt-br"/><link rel="alternate" hreflang="ru" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=ru"/><link rel="alternate" hreflang="es" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=es"/><link rel="alternate" hreflang="es-419" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=es-419"/><link rel="alternate" hreflang="th" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=th"/><link rel="alternate" hreflang="tr" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=tr"/><link rel="alternate" hreflang="vi" href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage?hl=vi"/><title>Google Analytics Cookie Usage on Websites | Analytics for Web (analytics.js) | Google for Developers</title> <meta property="og:title" content="Google Analytics Cookie Usage on Websites | Analytics for Web (analytics.js) | Google for Developers"><meta property="og:url" content="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage"><meta property="og:image" content="https://web.archive.org/web/20230530220139im_/https://www.gstatic.com/devrel-devsite/prod/v4adef427db21a4cd79f489fce8da23c25ef3f53705a17ddcb0611ee166b2e610/developers/images/opengraph/orange.png"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="675"><meta property="og:locale" content="en"><meta name="twitter:card" content="summary_large_image"><script type="application/ld+json"> { "@context": "https://web.archive.org/web/20230530220139/https://schema.org", "@type": "Article", "headline": "Google Analytics Cookie Usage on Websites" } </script><script type="application/ld+json"> { "@context": "https://web.archive.org/web/20230530220139/https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Google Analytics", "item": "https://web.archive.org/web/20230530220139/https://developers.google.com/analytics" },{ "@type": "ListItem", "position": 2, "name": "Measurement", "item": "https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection" },{ "@type": "ListItem", "position": 3, "name": "analytics.js", "item": "https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs" },{ "@type": "ListItem", "position": 4, "name": "Google Analytics Cookie Usage on Websites", "item": "https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage" }] } </script> <link rel="stylesheet" href="/web/20230530220139cs_/https://developers.google.com/extras.css"></head> <body class="" template="page" theme="orange" type="article" layout="docs" pending> <devsite-progress type="indeterminate" id="app-progress"></devsite-progress> <section class="devsite-wrapper"><devsite-header> <div class="devsite-header--inner nocontent"> <div class="devsite-top-logo-row-wrapper-wrapper"> <div class="devsite-top-logo-row-wrapper"> <div class="devsite-top-logo-row"> <button type="button" id="devsite-hamburger-menu" class="devsite-header-icon-button button-flat material-icons gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Navigation menu button" visually-hidden aria-label="Open menu"> </button> <div class="devsite-product-name-wrapper"> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics"> <div class="devsite-product-logo-container" size="medium"> <img class="devsite-product-logo" alt="Google Analytics" src="https://web.archive.org/web/20230530220139im_/https://www.gstatic.com/analytics-suite/header/suite/v2/ic_analytics.svg" srcset="" sizes="64px" loading="lazy"> </div> </a> <span class="devsite-product-name"> <ul class="devsite-breadcrumb-list" aria-label="Product breadcrumb"> <li class="devsite-breadcrumb-item devsite-has-google-wordmark"> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Upper Header" data-value="1" track-type="globalNav" track-name="breadcrumb" track-metadata-position="1" track-metadata-eventdetail="Google Analytics"> <svg class="devsite-google-wordmark" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 148 48"> <title>Google</title> <path class="devsite-google-wordmark-svg-path" d="M19.58,37.65c-9.87,0-18.17-8.04-18.17-17.91c0-9.87,8.3-17.91,18.17-17.91c5.46,0,9.35,2.14,12.27,4.94l-3.45,3.45c-2.1-1.97-4.93-3.49-8.82-3.49c-7.21,0-12.84,5.81-12.84,13.02c0,7.21,5.64,13.02,12.84,13.02c4.67,0,7.34-1.88,9.04-3.58c1.4-1.4,2.32-3.41,2.66-6.16H19.58v-4.89h16.47c0.18,0.87,0.26,1.92,0.26,3.06c0,3.67-1.01,8.21-4.24,11.44C28.93,35.9,24.91,37.65,19.58,37.65z M61.78,26.12c0,6.64-5.1,11.53-11.36,11.53s-11.36-4.89-11.36-11.53c0-6.68,5.1-11.53,11.36-11.53S61.78,19.43,61.78,26.12z M56.8,26.12c0-4.15-2.96-6.99-6.39-6.99c-3.43,0-6.39,2.84-6.39,6.99c0,4.11,2.96,6.99,6.39,6.99C53.84,33.11,56.8,30.22,56.8,26.12z M87.25,26.12c0,6.64-5.1,11.53-11.36,11.53c-6.26,0-11.36-4.89-11.36-11.53c0-6.68,5.1-11.53,11.36-11.53C82.15,14.59,87.25,19.43,87.25,26.12zM82.28,26.12c0-4.15-2.96-6.99-6.39-6.99c-3.43,0-6.39,2.84-6.39,6.99c0,4.11,2.96,6.99,6.39,6.99C79.32,33.11,82.28,30.22,82.28,26.12z M112.09,15.29v20.7c0,8.52-5.02,12.01-10.96,12.01c-5.59,0-8.95-3.76-10.22-6.81l4.41-1.83c0.79,1.88,2.71,4.1,5.81,4.1c3.8,0,6.16-2.36,6.16-6.77v-1.66h-0.18c-1.14,1.4-3.32,2.62-6.07,2.62c-5.76,0-11.05-5.02-11.05-11.49c0-6.51,5.28-11.57,11.05-11.57c2.75,0,4.93,1.22,6.07,2.58h0.18v-1.88H112.09z M107.64,26.16c0-4.06-2.71-7.03-6.16-7.03c-3.49,0-6.42,2.97-6.42,7.03c0,4.02,2.93,6.94,6.42,6.94C104.93,33.11,107.64,30.18,107.64,26.16z M120.97,3.06v33.89h-5.07V3.06H120.97z M140.89,29.92l3.93,2.62c-1.27,1.88-4.32,5.11-9.61,5.11c-6.55,0-11.28-5.07-11.28-11.53c0-6.86,4.77-11.53,10.71-11.53c5.98,0,8.91,4.76,9.87,7.34l0.52,1.31l-15.42,6.38c1.18,2.31,3.01,3.49,5.59,3.49C137.79,33.11,139.58,31.84,140.89,29.92zM128.79,25.77l10.31-4.28c-0.57-1.44-2.27-2.45-4.28-2.45C132.24,19.04,128.66,21.31,128.79,25.77z"/> </svg>Analytics </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Upper Header" data-value="2" track-type="globalNav" track-name="breadcrumb" track-metadata-position="2" track-metadata-eventdetail="Google Analytics APIs"> Measurement </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Upper Header" data-value="3" track-type="globalNav" track-name="breadcrumb" track-metadata-position="3" track-metadata-eventdetail="Google Analytics for Web (analytics.js)"> analytics.js </a> </li> </ul> </span> </div> <div class="devsite-top-logo-row-middle"> <div class="devsite-header-upper-tabs"> </div> <devsite-search aria-expanded="false" aria-haspopup="listbox" enable-signin enable-search enable-suggestions enable-query-completion project-name="Analytics for Web (analytics.js)" tenant-name="Google for Developers" project-scope="/analytics/devguides/collection/analyticsjs" url-scoped="https://developers.google.com/s/results/analytics/devguides/collection/analyticsjs" role="combobox"> <form class="devsite-search-form" action="https://web.archive.org/web/20230530220139/https://developers.google.com/s/results" method="GET"> <div class="devsite-search-container"> <div class="devsite-searchbox"> <input aria-activedescendant="" aria-autocomplete="list" aria-label="Search" aria-haspopup="false" aria-multiline="false" aria-label="Search box" autocomplete="off" class="devsite-search-field devsite-search-query" name="q" placeholder="Search" role="searchbox" type="text" value=""> <div class="devsite-search-image material-icons" aria-hidden="true"></div> </div> <button type="button" search-open class="devsite-search-button devsite-header-icon-button button-flat material-icons" aria-label="Open search"></button> </div> </form> <button type="button" search-close class="devsite-search-button devsite-header-icon-button button-flat material-icons" aria-label="Close search"></button> </devsite-search> </div> <devsite-language-selector> <ul role="presentation"> <li role="presentation"> <a role="menuitem" lang="en">English</a> </li> <li role="presentation"> <a role="menuitem" lang="id">Bahasa Indonesia</a> </li> <li role="presentation"> <a role="menuitem" lang="de">Deutsch</a> </li> <li role="presentation"> <a role="menuitem" lang="es">Español</a> </li> <li role="presentation"> <a role="menuitem" lang="es_419">Español – América Latina</a> </li> <li role="presentation"> <a role="menuitem" lang="fr">Français</a> </li> <li role="presentation"> <a role="menuitem" lang="it">Italiano</a> </li> <li role="presentation"> <a role="menuitem" lang="pl">Polski</a> </li> <li role="presentation"> <a role="menuitem" lang="pt_br">Português – Brasil</a> </li> <li role="presentation"> <a role="menuitem" lang="vi">Tiếng Việt</a> </li> <li role="presentation"> <a role="menuitem" lang="tr">Türkçe</a> </li> <li role="presentation"> <a role="menuitem" lang="ru">Русский</a> </li> <li role="presentation"> <a role="menuitem" lang="he">עברית</a> </li> <li role="presentation"> <a role="menuitem" lang="ar">العربيّة</a> </li> <li role="presentation"> <a role="menuitem" lang="fa">فارسی</a> </li> <li role="presentation"> <a role="menuitem" lang="hi">हिंदी</a> </li> <li role="presentation"> <a role="menuitem" lang="bn">বাংলা</a> </li> <li role="presentation"> <a role="menuitem" lang="th">ภาษาไทย</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_cn">中文 – 简体</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_tw">中文 – 繁體</a> </li> <li role="presentation"> <a role="menuitem" lang="ja">日本語</a> </li> <li role="presentation"> <a role="menuitem" lang="ko">한국어</a> </li> </ul> </devsite-language-selector> <devsite-user enable-profiles fp-auth id="devsite-user"> <span class="button devsite-top-button" aria-hidden="true" visually-hidden>Sign in</span> </devsite-user> </div> </div> </div> <div class="devsite-collapsible-section "> <div class="devsite-header-background"> <div class="devsite-doc-set-nav-row"> <devsite-tabs class="lower-tabs"> <nav class="devsite-tabs-wrapper" aria-label="Lower tabs"> <tab active> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs" track-metadata-eventdetail="https://developers.google.com/analytics/devguides/collection/analyticsjs" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - guides" track-metadata-module="primary nav" aria-label="Guides, selected" data-category="Site-Wide Custom Events" data-label="Tab: Guides" track-name="guides"> Guides </a> </tab> <tab> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/command-queue-reference" track-metadata-eventdetail="https://developers.google.com/analytics/devguides/collection/analyticsjs/command-queue-reference" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - reference" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Reference" track-name="reference"> Reference </a> </tab> <tab> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/help" track-metadata-eventdetail="https://developers.google.com/analytics/devguides/collection/analyticsjs/help" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - support" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Support" track-name="support"> Support </a> </tab> </nav> </devsite-tabs> </div> </div> </div> </div> </devsite-header> <devsite-book-nav scrollbars> <div class="devsite-book-nav-filter "> <input type="text" placeholder="Filter" aria-label="Type to filter" role="searchbox"> <span class="filter-clear-button hidden" data-title="Clear filter" aria-label="Clear filter" role="button" tabindex="0"></span> </div> <nav class="devsite-book-nav devsite-nav nocontent" aria-label="Side menu"> <div class="devsite-mobile-header"> <button type="button" id="devsite-close-nav" class="devsite-header-icon-button button-flat material-icons gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Close navigation" aria-label="Close navigation"> </button> <div class="devsite-product-name-wrapper"> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics"> <div class="devsite-product-logo-container" size="medium"> <img class="devsite-product-logo" alt="Google Analytics" src="https://web.archive.org/web/20230530220139im_/https://www.gstatic.com/analytics-suite/header/suite/v2/ic_analytics.svg" srcset="" sizes="64px" loading="lazy"> </div> </a> <span class="devsite-product-name"> <ul class="devsite-breadcrumb-list" aria-label="Upper header breadcrumb"> <li class="devsite-breadcrumb-item devsite-has-google-wordmark"> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Upper Header" data-value="1" track-type="globalNav" track-name="breadcrumb" track-metadata-position="1" track-metadata-eventdetail="Google Analytics"> <svg class="devsite-google-wordmark" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 148 48"> <title>Google</title> <path class="devsite-google-wordmark-svg-path" d="M19.58,37.65c-9.87,0-18.17-8.04-18.17-17.91c0-9.87,8.3-17.91,18.17-17.91c5.46,0,9.35,2.14,12.27,4.94l-3.45,3.45c-2.1-1.97-4.93-3.49-8.82-3.49c-7.21,0-12.84,5.81-12.84,13.02c0,7.21,5.64,13.02,12.84,13.02c4.67,0,7.34-1.88,9.04-3.58c1.4-1.4,2.32-3.41,2.66-6.16H19.58v-4.89h16.47c0.18,0.87,0.26,1.92,0.26,3.06c0,3.67-1.01,8.21-4.24,11.44C28.93,35.9,24.91,37.65,19.58,37.65z M61.78,26.12c0,6.64-5.1,11.53-11.36,11.53s-11.36-4.89-11.36-11.53c0-6.68,5.1-11.53,11.36-11.53S61.78,19.43,61.78,26.12z M56.8,26.12c0-4.15-2.96-6.99-6.39-6.99c-3.43,0-6.39,2.84-6.39,6.99c0,4.11,2.96,6.99,6.39,6.99C53.84,33.11,56.8,30.22,56.8,26.12z M87.25,26.12c0,6.64-5.1,11.53-11.36,11.53c-6.26,0-11.36-4.89-11.36-11.53c0-6.68,5.1-11.53,11.36-11.53C82.15,14.59,87.25,19.43,87.25,26.12zM82.28,26.12c0-4.15-2.96-6.99-6.39-6.99c-3.43,0-6.39,2.84-6.39,6.99c0,4.11,2.96,6.99,6.39,6.99C79.32,33.11,82.28,30.22,82.28,26.12z M112.09,15.29v20.7c0,8.52-5.02,12.01-10.96,12.01c-5.59,0-8.95-3.76-10.22-6.81l4.41-1.83c0.79,1.88,2.71,4.1,5.81,4.1c3.8,0,6.16-2.36,6.16-6.77v-1.66h-0.18c-1.14,1.4-3.32,2.62-6.07,2.62c-5.76,0-11.05-5.02-11.05-11.49c0-6.51,5.28-11.57,11.05-11.57c2.75,0,4.93,1.22,6.07,2.58h0.18v-1.88H112.09z M107.64,26.16c0-4.06-2.71-7.03-6.16-7.03c-3.49,0-6.42,2.97-6.42,7.03c0,4.02,2.93,6.94,6.42,6.94C104.93,33.11,107.64,30.18,107.64,26.16z M120.97,3.06v33.89h-5.07V3.06H120.97z M140.89,29.92l3.93,2.62c-1.27,1.88-4.32,5.11-9.61,5.11c-6.55,0-11.28-5.07-11.28-11.53c0-6.86,4.77-11.53,10.71-11.53c5.98,0,8.91,4.76,9.87,7.34l0.52,1.31l-15.42,6.38c1.18,2.31,3.01,3.49,5.59,3.49C137.79,33.11,139.58,31.84,140.89,29.92zM128.79,25.77l10.31-4.28c-0.57-1.44-2.27-2.45-4.28-2.45C132.24,19.04,128.66,21.31,128.79,25.77z"/> </svg>Analytics </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Upper Header" data-value="2" track-type="globalNav" track-name="breadcrumb" track-metadata-position="2" track-metadata-eventdetail="Google Analytics APIs"> Measurement </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Upper Header" data-value="3" track-type="globalNav" track-name="breadcrumb" track-metadata-position="3" track-metadata-eventdetail="Google Analytics for Web (analytics.js)"> analytics.js </a> </li> </ul> </span> </div> </div> <div class="devsite-book-nav-wrapper"> <div class="devsite-mobile-nav-top"> <ul class="devsite-nav-list"> <li class="devsite-nav-item"> <a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs" class="devsite-nav-title gc-analytics-event devsite-nav-has-children devsite-nav-active" data-category="Site-Wide Custom Events" data-label="Tab: Guides" track-name="guides" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Guides" track-type="navMenu" track-metadata-eventdetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip> Guides </span> <span class="devsite-nav-icon material-icons" data-icon="forward"> </span> </a> </li> <li class="devsite-nav-item"> <a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/command-queue-reference" class="devsite-nav-title gc-analytics-event devsite-nav-has-children " data-category="Site-Wide Custom Events" data-label="Tab: Reference" track-name="reference" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Reference" track-type="navMenu" track-metadata-eventdetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip> Reference </span> <span class="devsite-nav-icon material-icons" data-icon="forward"> </span> </a> </li> <li class="devsite-nav-item"> <a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/help" class="devsite-nav-title gc-analytics-event devsite-nav-has-children " data-category="Site-Wide Custom Events" data-label="Tab: Support" track-name="support" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Support" track-type="navMenu" track-metadata-eventdetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip> Support </span> <span class="devsite-nav-icon material-icons" data-icon="forward"> </span> </a> </li> </ul> </div> <div class="devsite-mobile-nav-bottom" role="navigation"> <ul class="devsite-nav-list" menu="_book"> <li class="devsite-nav-item devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path"> <span class="devsite-nav-text" tooltip>Fundamentals</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs"><span class="devsite-nav-text" tooltip>Adding analytics.js to Your Site</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/how-analyticsjs-works" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/how-analyticsjs-works" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/how-analyticsjs-works"><span class="devsite-nav-text" tooltip>How analytics.js Works</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/creating-trackers" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/creating-trackers"><span class="devsite-nav-text" tooltip>Creating Trackers</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/accessing-trackers" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/accessing-trackers" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/accessing-trackers"><span class="devsite-nav-text" tooltip>Getting and Setting Tracker Data</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/sending-hits" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/sending-hits" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/sending-hits"><span class="devsite-nav-text" tooltip>Sending Data to Google Analytics</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/using-plugins" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/using-plugins" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/using-plugins"><span class="devsite-nav-text" tooltip>Using Plugins</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/debugging" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/debugging" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/debugging"><span class="devsite-nav-text" tooltip>Debugging</span></a></li></ul></li> <li class="devsite-nav-item devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path"> <span class="devsite-nav-text" tooltip>Measuring common user interactions</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/pages" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/pages" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/pages"><span class="devsite-nav-text" tooltip>Page Views</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/events" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/events" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/events"><span class="devsite-nav-text" tooltip>Event Measurement</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/social-interactions" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/social-interactions" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/social-interactions"><span class="devsite-nav-text" tooltip>Social Interactions</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/screens" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/screens" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/screens"><span class="devsite-nav-text" tooltip>App / Screen Measurement</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/user-timings" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/user-timings" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/user-timings"><span class="devsite-nav-text" tooltip>User Timings</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/exceptions" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/exceptions" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/exceptions"><span class="devsite-nav-text" tooltip>Measure Exceptions</span></a></li></ul></li> <li class="devsite-nav-item devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path"> <span class="devsite-nav-text" tooltip>Advanced Topics</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookies-user-id" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/cookies-user-id" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/cookies-user-id"><span class="devsite-nav-text" tooltip>Cookies and User Identification</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cross-domain" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/cross-domain" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/cross-domain"><span class="devsite-nav-text" tooltip>Cross-domain Measurement</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/custom-dims-mets" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/custom-dims-mets" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/custom-dims-mets"><span class="devsite-nav-text" tooltip>Custom Dimensions and Metrics</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/renaming-the-ga-object" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/renaming-the-ga-object" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/renaming-the-ga-object"><span class="devsite-nav-text" tooltip>Renaming the Global (ga) Object</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/writing-plugins" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/writing-plugins" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/writing-plugins"><span class="devsite-nav-text" tooltip>Writing Plugins</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/tasks" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/tasks" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/tasks"><span class="devsite-nav-text" tooltip>Tasks</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/ip-anonymization" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/ip-anonymization" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/ip-anonymization"><span class="devsite-nav-text" tooltip>IP Anonymization</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/user-opt-out" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/user-opt-out" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/user-opt-out"><span class="devsite-nav-text" tooltip>User Opt-out</span></a></li></ul></li> <li class="devsite-nav-item devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path"> <span class="devsite-nav-text" tooltip>Official Plugins</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/display-features" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/display-features" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/display-features"><span class="devsite-nav-text" tooltip>Advertising Features</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/ecommerce" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/ecommerce"><span class="devsite-nav-text" tooltip>Ecommerce</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/enhanced-ecommerce" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/enhanced-ecommerce"><span class="devsite-nav-text" tooltip>Enhanced Ecommerce</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-link-attribution" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/enhanced-link-attribution" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/enhanced-link-attribution"><span class="devsite-nav-text" tooltip>Enhanced link attribution</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/linker" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/linker" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/linker"><span class="devsite-nav-text" tooltip>Linker</span></a></li></ul></li> <li class="devsite-nav-item devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path"> <span class="devsite-nav-text" tooltip>Solutions</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/single-page-applications" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/single-page-applications" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/single-page-applications"><span class="devsite-nav-text" tooltip>Single Page Applications</span></a></li></ul></li> <li class="devsite-nav-item devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path"> <span class="devsite-nav-text" tooltip>Resources</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/cookie-usage" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/cookie-usage"><span class="devsite-nav-text" tooltip>Cookie Usage</span></a></li><li class="devsite-nav-item"><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/limits-quotas" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /analytics/devguides/collection/analyticsjs/limits-quotas" track-type="bookNav" track-name="click" track-metadata-eventdetail="/analytics/devguides/collection/analyticsjs/limits-quotas"><span class="devsite-nav-text" tooltip>Limits and Quotas</span></a></li></ul></li> </ul> </div> </div> </nav> </devsite-book-nav> <section id="gc-wrapper"> <main role="main" class="devsite-main-content" has-book-nav has-sidebar> <div class="devsite-sidebar"> <div class="devsite-sidebar-content"> <devsite-toc class="devsite-nav" role="navigation" aria-label="On this page" depth="2" scrollbars></devsite-toc> <devsite-recommendations-sidebar class="nocontent devsite-nav"> </devsite-recommendations-sidebar> </div> </div> <devsite-content> <article class="devsite-article"> <div class="devsite-banner devsite-banner-announcement" background="/web/20230530220139im_/https://developers.google.com/analytics/devguides/collection/analyticsjs/google-yellow"> <div class="devsite-banner-message"> <div class="devsite-banner-message-text"> Universal Analytics (UA) will be deprecated on July 1, 2023, which means it will stop processing data. Analytics 360 properties will stop working on October 1, 2023. <a href="https://web.archive.org/web/20230530220139/https://support.google.com/analytics/answer/10759417">Migrate to Google Analytics 4</a>. </div> </div> </div> <div class="devsite-article-meta nocontent" role="navigation"> <ul class="devsite-breadcrumb-list" aria-label="Breadcrumb"> <li class="devsite-breadcrumb-item "> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="1" track-type="globalNav" track-name="breadcrumb" track-metadata-position="1" track-metadata-eventdetail=""> Home </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/products" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="2" track-type="globalNav" track-name="breadcrumb" track-metadata-position="2" track-metadata-eventdetail=""> Products </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="3" track-type="globalNav" track-name="breadcrumb" track-metadata-position="3" track-metadata-eventdetail="Google Analytics"> Google Analytics </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="4" track-type="globalNav" track-name="breadcrumb" track-metadata-position="4" track-metadata-eventdetail="Google Analytics APIs"> Measurement </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="5" track-type="globalNav" track-name="breadcrumb" track-metadata-position="5" track-metadata-eventdetail="Google Analytics for Web (analytics.js)"> analytics.js </a> </li> </ul> <devsite-thumb-rating position="header"> </devsite-thumb-rating> </div> <h1 class="devsite-page-title">Google Analytics Cookie Usage on Websites</h1><devsite-feature-tooltip ack-key="AckCollectionsBookmarkTooltipDismiss" analytics-category="Site-Wide Custom Events" analytics-action-show="Callout Profile displayed" analytics-action-close="Callout Profile dismissed" analytics-label="Create Collection Callout" class="devsite-page-bookmark-tooltip nocontent" dismiss-button="true" id="devsite-collections-dropdown" dismiss-button-text="Dismiss" close-button-text="Got it"> <devsite-bookmark></devsite-bookmark> <span slot="popout-heading"> Stay organized with collections </span> <span slot="popout-contents"> Save and categorize content based on your preferences. </span> </devsite-feature-tooltip> <devsite-toc class="devsite-nav" depth="2" devsite-toc-embedded> </devsite-toc> <devsite-recommendations-dropdown class="nocontent"></devsite-recommendations-dropdown> <div class="devsite-article-body clearfix "> <!-- update --> <p>This document describes how Google Analytics uses cookies to measure user-interactions on websites.</p> <h2 id="overview" data-text="Overview">Overview</h2> <p>Google Analytics is a simple, easy-to-use tool that helps website owners measure how users interact with website content. As a user navigates between web pages, Google Analytics provides website owners JavaScript tags (libraries) to record information about the page a user has seen, for example the URL of the page.</p> <p>The Google Analytics JavaScript libraries use <a href="https://web.archive.org/web/20230530220139/https://en.wikipedia.org/wiki/HTTP_cookie">HTTP cookies</a> to "remember" what a user has done on previous pages / interactions with the website.</p> <aside class="note"><strong>Note:</strong><span> Read the <a href="https://web.archive.org/web/20230530220139/https://support.google.com/analytics/answer/6004245" title="Google Analytics Privacy">Google Analytics privacy</a> document for more details about the data collected by Google Analytics.</span></aside> <p>Google Analytics supports three JavaScript libraries (tags) for measuring website usage: <a href="/web/20230530220139/https://developers.google.com/gtagjs">gtag.js</a>, <a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs">analytics.js</a>, and <a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/gajs">ga.js</a>. The following sections describe how each library use cookies for <a href="https://web.archive.org/web/20230530220139/https://support.google.com/analytics/answer/2790010">Universal Analytics</a> and <a href="https://web.archive.org/web/20230530220139/https://support.google.com/analytics/answer/10089681">Google Analytics 4</a>, where applicable.</p> <h2 id="gtagjs_google_analytics_4_-_cookie_usage" data-text="gtag.js (Google Analytics 4) - cookie usage">gtag.js (Google Analytics 4) - cookie usage</h2> <p>For <a href="https://web.archive.org/web/20230530220139/https://support.google.com/analytics/answer/10089681">Google Analytics 4</a>, the <a href="/web/20230530220139/https://developers.google.com/gtagjs">gtag.js JavaScript library</a> uses <em>first-party</em> cookies to:</p> <ul> <li>Distinguish unique users</li> <li>Distinguish sessions for a user</li> </ul> <p>When using the <a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/ga4">recommended JavaScript snippet</a> cookies are set at the highest possible domain level. For example, if your website address is <code translate="no" dir="ltr">blog.example.co.uk</code>, gtag.js will set the cookie domain to <code translate="no" dir="ltr">.example.co.uk</code>. Setting cookies on the highest level domain possible allows measurement to occur across subdomains without any extra configuration.</p> <aside class="note"><strong>Note:</strong><span> gtag.js does not require setting cookies to transmit data to Google Analytics.</span></aside> <p>gtag.js sets the following cookies:</p> <table> <thead> <tr> <th width="25%">Cookie name</th> <th>Default expiration time</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code translate="no" dir="ltr">_ga</code></td> <td>2 years</td> <td>Used to distinguish users.</td> </tr> <tr> <td><code translate="no" dir="ltr">_ga_<container-id></code></td> <td>2 years</td> <td>Used to persist session state.</td> </tr> </tbody> </table> <h3 id="customization" data-text="Customization">Customization</h3> <p>Read the gtag.js <a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/ga4/cookies-user-id">Cookies and user identification guide (GA4)</a> to learn how these default settings can be customized with gtag.js.</p> <h2 id="gtagjs_and_analyticsjs_universal_analytics_-_cookie_usage" data-text="gtag.js and analytics.js (Universal Analytics) - cookie usage">gtag.js and analytics.js (Universal Analytics) - cookie usage</h2> <p>The <a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs">analytics.js JavaScript library</a> or the <a href="/web/20230530220139/https://developers.google.com/gtagjs">gtag.js JavaScript library</a> can be used for <a href="https://web.archive.org/web/20230530220139/https://support.google.com/analytics/answer/2790010">Universal Analytics</a>. In both cases, the libraries use <em>first-party</em> cookies to:</p> <ul> <li>Distinguish unique users</li> <li>Throttle the request rate</li> </ul> <p>When using the <a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/gtagjs">recommended JavaScript snippet</a> cookies are set at the highest possible domain level. For example, if your website address is <code translate="no" dir="ltr">blog.example.co.uk</code>, analytics.js and gtag.js will set the cookie domain to <code translate="no" dir="ltr">.example.co.uk</code>. Setting cookies on the highest level domain possible allows measurement to occur across subdomains without any extra configuration.</p> <aside class="note"><strong>Note:</strong><span> gtag.js and analytics.js do not require setting cookies to transmit data to Google Analytics.</span></aside> <p>gtag.js and analytics.js set the following cookies:</p> <table> <tr> <th width="25%">Cookie Name</th> <th>Default expiration time</th> <th>Description</th> </tr> <tr> <td><code translate="no" dir="ltr">_ga</code></td> <td>2 years</td> <td>Used to distinguish users.</td> </tr> <tr> <td><code translate="no" dir="ltr">_gid</code></td> <td>24 hours</td> <td>Used to distinguish users.</td> </tr> <tr> <td><code translate="no" dir="ltr">_gat</code></td> <td>1 minute</td> <td>Used to throttle request rate. If Google Analytics is deployed via Google Tag Manager, this cookie will be named <code translate="no" dir="ltr">_dc_gtm_<property- id></code>.</td> </tr> <tr> <td><code translate="no" dir="ltr">AMP_TOKEN</code></td> <td>30 seconds to 1 year</td> <td>Contains a token that can be used to retrieve a Client ID from AMP Client ID service. Other possible values indicate opt-out, inflight request or an error retrieving a Client ID from AMP Client ID service.</td> </tr> <tr> <td><code translate="no" dir="ltr">_gac_<property-id></code></td> <td>90 days</td> <td> Contains campaign related information for the user. If you have linked your Google Analytics and Google Ads accounts, Google Ads website conversion tags will read this cookie unless you opt-out. <a href="//web.archive.org/web/20230530220139/https://support.google.com/google-ads/answer/7521212">Learn more</a>. </td> </tr> </table> <h3 id="customization_2" data-text="Customization">Customization</h3> <p>Read the gtag.js <a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/gtagjs/cookies-user-id">Cookies and user identification guide (Universal Analytics)</a> to learn how these default settings can be customized with gtag.js.</p> <p>Read the analytics.js <a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/analyticsjs/domains">Domains and Cookies developer guide</a> to learn all the ways these default settings can be customized with analytics.js.</p> <p>Read the <a href="https://web.archive.org/web/20230530220139/https://support.google.com/analytics/answer/2838718">Security and privacy in Universal Analytics</a> document for more information about Universal Analytics and cookies.</p> <h2 id="gajs_-_cookie_usage" data-text="ga.js - cookie usage">ga.js - cookie usage</h2> <p>The <a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/gajs">ga.js JavaScript library</a> uses <em>first-party</em> cookies to:</p> <ul> <li>Determine which domain to measure</li> <li>Distinguish unique users</li> <li>Throttle the request rate</li> <li>Remember the number and time of previous visits</li> <li>Remember traffic source information</li> <li>Determine the start and end of a session</li> <li>Remember the value of visitor-level custom variables</li> </ul> <p>By default, this library sets cookies on the domain specified in the <code translate="no" dir="ltr">document.host</code> browser property and sets the cookie path to the root level <code translate="no" dir="ltr">(/)</code>. This library sets the following cookies:</p> <table> <tr> <th width="15%">Cookie Name</th> <th width="180px">Default Expiration Time</th> <th>Description</th> </tr> <tr> <td><code translate="no" dir="ltr">__utma</code></td> <td>2 years from set/update</td> <td>Used to distinguish users and sessions. The cookie is created when the javascript library executes and no existing __utma cookies exists. The cookie is updated every time data is sent to Google Analytics.</td> </tr> <tr> <td><code translate="no" dir="ltr">__utmt</code></td> <td>10 minutes</td> <td>Used to throttle request rate.</td> </tr> <tr> <td><code translate="no" dir="ltr">__utmb</code></td> <td>30 mins from set/update</td> <td>Used to determine new sessions/visits. The cookie is created when the javascript library executes and no existing __utmb cookies exists. The cookie is updated every time data is sent to Google Analytics.</td> </tr> <tr> <td><code translate="no" dir="ltr">__utmc</code></td> <td>End of browser session</td> <td>Not used in ga.js. Set for interoperability with urchin.js. Historically, this cookie operated in conjunction with the <code translate="no" dir="ltr">__utmb</code> cookie to determine whether the user was in a new session/visit.</td> </tr> <tr> <td><code translate="no" dir="ltr">__utmz</code></td> <td>6 months from set/update</td> <td>Stores the traffic source or campaign that explains how the user reached your site. The cookie is created when the javascript library executes and is updated every time data is sent to Google Analytics.</td> </tr> <tr> <td><code translate="no" dir="ltr">__utmv</code></td> <td>2 years from set/update</td> <td>Used to store visitor-level custom variable data. This cookie is created when a developer uses the <a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiBasicConfiguration#_gat.GA_Tracker_._setCustomVar"> <code translate="no" dir="ltr">_setCustomVar</code></a> method with a visitor level custom variable. This cookie was also used for the deprecated <code translate="no" dir="ltr">_setVar</code> method. The cookie is updated every time data is sent to Google Analytics.</td> </tr> </table> <h2 id="customization_3" data-text="Customization">Customization</h2> <p>The following methods can be used to customize how cookies are set:</p> <ul> <li><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiDomainDirectory#_gat.GA_Tracker_._setDomainName"><code translate="no" dir="ltr">_setDomainName</code></a> - Sets the domain to which all cookies will be set.</li> <li><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiDomainDirectory#_gat.GA_Tracker_._setCookiePath"><code translate="no" dir="ltr">_setCookiePath</code></a> - Sets the path to which all cookies will be set.</li> <li><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiBasicConfiguration#_gat.GA_Tracker_._setVisitorCookieTimeout"><code translate="no" dir="ltr">_setVisitorCookieTimeout</code></a> - Sets the Google Analytics visitor cookie expiration in milliseconds.</li> <li><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiBasicConfiguration#_gat.GA_Tracker_._setSessionCookieTimeout"><code translate="no" dir="ltr">_setSessionCookieTimeout</code></a> - Sets the new session cookie timeout in milliseconds.</li> <li><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiCampaignTracking#_gat.GA_Tracker_._setCampaignCookieTimeout"><code translate="no" dir="ltr">_setCampaignCookieTimeout</code></a> - Sets the campaign cookie expiration time in milliseconds.</li> <li><a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiDomainDirectory#_gat.GA_Tracker_._storeGac"><code translate="no" dir="ltr">_storeGac</code></a> - Pass in <code translate="no" dir="ltr">false</code> to disable the GAC cookie. Defaults to <code translate="no" dir="ltr">true</code></li> </ul> <p>Read the <a href="/web/20230530220139/https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite">Tracking Multiple Domains</a> guide to learn how to configure ga.js to measure user interaction across domains.</p> <h2 id="urchinjs_-_cookie_usage" data-text="urchin.js - cookie usage">urchin.js - cookie usage</h2> <p>Historically, Google Analytics provided a JavaScript measurement library named urchin.js. When the newer ga.js library launched, developers were encouraged to migrate to the new library. For sites that have not completed the migration, urchin.js sets cookies identically to what is set in ga.js. Read the <a href="#gajs">ga.js</a> cookie usage section</a> above for more details.</p> <h2 id="google_analytics_for_display_advertisers_-_cookie_usage" data-text="Google Analytics for Display Advertisers - cookie usage">Google Analytics for Display Advertisers - cookie usage</h2> <p>For customers that are using <a href="https://web.archive.org/web/20230530220139/https://support.google.com/analytics/answer/2700409">Google Analytics' Display Advertiser features</a>, such as <a href="https://web.archive.org/web/20230530220139/https://support.google.com/analytics/answer/2611268">remarketing</a>, a <em>third-party</em> DoubleClick cookie is used in addition to the other cookies described in this document for just these features. For more information about this cookie, visit the <a href="https://web.archive.org/web/20230530220139/https://policies.google.com/technologies/ads#toc-analytics">Google Advertising Privacy FAQ</a>.</p> <h2 id="content_experiments_-_cookie_usage" data-text="Content Experiments - cookie usage">Content Experiments - cookie usage</h2> <p>For websites using Google Analytics <a href="https://web.archive.org/web/20230530220139/https://support.google.com/analytics/answer/1745147">content experiments</a>, the following cookies are used for these features in addition to the other cookies described in this document:</p> <table> <tr> <th width="15%">Cookie Name</th> <th>Default expiration time</th> <th>Description</th> </tr> <tr> <td><code translate="no" dir="ltr">__utmx</code></td> <td>18 months</td> <td>Used to determine a user's inclusion in an experiment.</td> </tr> <tr> <td><code translate="no" dir="ltr">__utmxx</code></td> <td>18 months</td> <td>Used to determine the expiry of experiments a user has been included in.</td> </tr> </table> <h2 id="optimize_-_cookie_usage" data-text="Optimize - cookie usage">Optimize - cookie usage</h2> <p>For websites using <a href="https://web.archive.org/web/20230530220139/https://support.google.com/optimize/answer/6197440">Optimize</a>, the following cookies are used in addition to the other cookies described in this document:</p> <table> <tr> <th width="15%">Cookie Name</th> <th>Default expiration time</th> <th>Description</th> </tr> <tr> <td><code translate="no" dir="ltr">_gaexp</code></td> <td>Depends on the length of the experiment, but typically 90 days. </td> <td>Used to determine a user's inclusion in an experiment and the expiry of experiments a user has been included in.</td> </tr> <tr> <td><code translate="no" dir="ltr">_opt_awcid</code></td> <td>24 hours</td> <td>Used for campaigns mapped to Google Ads Customer IDs.</td> </tr> <tr> <td><code translate="no" dir="ltr">_opt_awmid</code></td> <td>24 hours</td> <td>Used for campaigns mapped to Google Ads Campaign IDs.</td> </tr> <tr> <td><code translate="no" dir="ltr">_opt_awgid</code></td> <td>24 hours</td> <td>Used for campaigns mapped to Google Ads Ad Group IDs</td> </tr> <tr> <td><code translate="no" dir="ltr">_opt_awkid</code></td> <td>24 hours</td> <td>Used for campaigns mapped to Google Ads Criterion IDs</td> </tr> <tr> <td><code translate="no" dir="ltr">_opt_utmc</code></td> <td>24 hours</td> <td>Stores the last <code translate="no" dir="ltr">utm_campaign</code> query parameter.</td> </tr> <tr> <td><code translate="no" dir="ltr">_opt_expid</code></td> <td>10 seconds</td> <td>This cookie is created when running a redirect experiment. It stores the experiment ID, the variant ID and the referrer to the page that's being redirected.</td> </tr> </table> <aside class="note"><strong>Note:</strong><span> Optimize is not compatible with ga.js and gtag.js (Google Analytics 4) implementations.</span></aside> </div> <devsite-recommendations display="in-page" hidden yield> </devsite-recommendations> <devsite-thumb-rating position="footer"> </devsite-thumb-rating> <devsite-recommendations id="recommendations-link" yield></devsite-recommendations> </article> <devsite-content-footer class="nocontent"> <p>Except as otherwise noted, the content of this page is licensed under the <a href="https://web.archive.org/web/20230530220139/https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 License</a>, and code samples are licensed under the <a href="https://web.archive.org/web/20230530220139/https://www.apache.org/licenses/LICENSE-2.0">Apache 2.0 License</a>. For details, see the <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/site-policies">Google Developers Site Policies</a>. Java is a registered trademark of Oracle and/or its affiliates.</p> <p>Last updated 2022-08-22 UTC.</p> </devsite-content-footer> <devsite-notification> </devsite-notification> <div class="devsite-content-data"> <template class="devsite-thumb-rating-down-categories"> [{ "type": "thumb-down", "id": "missingTheInformationINeed", "label":"Missing the information I need" },{ "type": "thumb-down", "id": "tooComplicatedTooManySteps", "label":"Too complicated / too many steps" },{ "type": "thumb-down", "id": "outOfDate", "label":"Out of date" },{ "type": "thumb-down", "id": "samplesCodeIssue", "label":"Samples / code issue" },{ "type": "thumb-down", "id": "otherDown", "label":"Other" }] </template> <template class="devsite-thumb-rating-up-categories"> [{ "type": "thumb-up", "id": "easyToUnderstand", "label":"Easy to understand" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"Solved my problem" },{ "type": "thumb-up", "id": "otherUp", "label":"Other" }] </template> </div> </devsite-content> </main> <devsite-footer-promos class="devsite-footer"> <nav class="devsite-footer-promos nocontent" aria-label="Promotions"> <ul class="devsite-footer-promos-list"> <li class="devsite-footer-promo"> <a href="https://web.archive.org/web/20230530220139/https://goo.gle/ga-newsletter" class="devsite-footer-promo-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Promo Link (index 1)"> <img class="devsite-footer-promo-icon" src="https://web.archive.org/web/20230530220139im_/https://www.gstatic.com/images/branding/product/1x/email_64dp.png" loading="lazy" alt="Newsletter"> Newsletter </a> <div class="devsite-footer-promo-description">Sign up for Google Analytics developer newsletter</div> </li> <li class="devsite-footer-promo"> <a href="https://web.archive.org/web/20230530220139/https://goo.gle/ga-discord" class="devsite-footer-promo-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Promo Link (index 2)"> <img class="devsite-footer-promo-icon" src="/web/20230530220139im_/https://developers.google.com/static/analytics/images/logo-discord.svg" loading="lazy" alt="Discord"> Discord </a> <div class="devsite-footer-promo-description">Join Google Analytics Discord server</div> </li> <li class="devsite-footer-promo"> <a href="https://web.archive.org/web/20230530220139/https://github.com/googleanalytics/" class="devsite-footer-promo-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Promo Link (index 3)"> <img class="devsite-footer-promo-icon" src="/web/20230530220139im_/https://developers.google.com/static/site-assets/logo-github.svg" loading="lazy" alt="GitHub"> GitHub </a> <div class="devsite-footer-promo-description">Try Google Analytics samples</div> </li> <li class="devsite-footer-promo"> <a href="https://web.archive.org/web/20230530220139/http://stackoverflow.com/questions/tagged/google-analytics" class="devsite-footer-promo-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Promo Link (index 4)"> <img class="devsite-footer-promo-icon" src="/web/20230530220139im_/https://developers.google.com/static/site-assets/logo-stack-overflow.svg" loading="lazy" alt="Stack Overflow"> Stack Overflow </a> <div class="devsite-footer-promo-description">Ask questions using the google-analytics tag</div> </li> <li class="devsite-footer-promo"> <a href="https://web.archive.org/web/20230530220139/https://www.youtube.com/user/googleanalytics" class="devsite-footer-promo-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Promo Link (index 5)"> <img class="devsite-footer-promo-icon" src="https://web.archive.org/web/20230530220139im_/https://www.gstatic.com/images/icons/material/product/2x/youtube_64dp.png" loading="lazy" alt="Videos"> Videos </a> <div class="devsite-footer-promo-description">View Google Analytics videos on YouTube</div> </li> </ul> </nav> </devsite-footer-promos> <devsite-footer-linkboxes class="devsite-footer"> <nav class="devsite-footer-linkboxes nocontent" aria-label="Footer links"> <ul class="devsite-footer-linkboxes-list"> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">Connect</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="/web/20230530220139/https://developers.google.com/analytics/community" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 1)"> Community & Updates </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/web/20230530220139/https://developers.google.com/analytics/help" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 2)"> Getting Help </a> </li> <li class="devsite-footer-linkbox-item"> <a href="https://web.archive.org/web/20230530220139/https://issuetracker.google.com/issues?q=componentid:187400" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 3)"> Reporting an Issue </a> </li> </ul> </li> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">Product Info</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="/web/20230530220139/https://developers.google.com/analytics/policy" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 1)"> Protocol / SDK Policy </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/web/20230530220139/https://developers.google.com/analytics/terms/branding-policy" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 2)"> Branding Policy </a> </li> </ul> </li> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">Developer consoles</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="//web.archive.org/web/20230530220139/https://console.developers.google.com/" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 1)"> Google API Console </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//web.archive.org/web/20230530220139/https://console.cloud.google.com/" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 2)"> Google Cloud Platform Console </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//web.archive.org/web/20230530220139/https://play.google.com/apps/publish" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 3)"> Google Play Console </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//web.archive.org/web/20230530220139/https://console.firebase.google.com/" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 4)"> Firebase Console </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//web.archive.org/web/20230530220139/https://console.actions.google.com/" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 5)"> Actions on Google Console </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//web.archive.org/web/20230530220139/https://cast.google.com/publish" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 6)"> Cast SDK Developer Console </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//web.archive.org/web/20230530220139/https://chrome.google.com/webstore/developer/dashboard" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 7)"> Chrome Web Store Dashboard </a> </li> </ul> </li> </ul> </nav> </devsite-footer-linkboxes> <devsite-footer-utility class="devsite-footer"> <div class="devsite-footer-utility nocontent"> <nav class="devsite-footer-sites" aria-label="Other Google Developers websites"> <a href="https://web.archive.org/web/20230530220139/https://developers.google.com/" class="devsite-footer-sites-logo-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Google Developers Link"> <picture> <source srcset="https://web.archive.org/web/20230530220139im_/https://www.gstatic.com/devrel-devsite/prod/v4adef427db21a4cd79f489fce8da23c25ef3f53705a17ddcb0611ee166b2e610/developers/images/lockup-google-for-developers-dark-theme.svg" media="(prefers-color-scheme: none)" class="devsite-dark-theme" loading="lazy" alt="Google Developers"> <img class="devsite-footer-sites-logo" src="https://web.archive.org/web/20230530220139im_/https://www.gstatic.com/devrel-devsite/prod/v4adef427db21a4cd79f489fce8da23c25ef3f53705a17ddcb0611ee166b2e610/developers/images/lockup-google-for-developers.svg" loading="lazy" alt="Google Developers"> </picture> </a> <ul class="devsite-footer-sites-list"> <li class="devsite-footer-sites-item"> <a href="//web.archive.org/web/20230530220139/https://developer.android.com/" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Android Link"> Android </a> </li> <li class="devsite-footer-sites-item"> <a href="//web.archive.org/web/20230530220139/https://developer.chrome.com/home" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Chrome Link"> Chrome </a> </li> <li class="devsite-footer-sites-item"> <a href="//web.archive.org/web/20230530220139/https://firebase.google.com/" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Firebase Link"> Firebase </a> </li> <li class="devsite-footer-sites-item"> <a href="//web.archive.org/web/20230530220139/https://cloud.google.com/" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Google Cloud Platform Link"> Google Cloud Platform </a> </li> <li class="devsite-footer-sites-item"> <a href="/web/20230530220139/https://developers.google.com/products" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer All products Link"> All products </a> </li> </ul> </nav> <nav class="devsite-footer-utility-links" aria-label="Utility links"> <ul class="devsite-footer-utility-list"> <li class="devsite-footer-utility-item "> <a class="devsite-footer-utility-link gc-analytics-event" href="/web/20230530220139/https://developers.google.com/terms/site-terms" data-category="Site-Wide Custom Events" data-label="Footer Terms link"> Terms </a> </li> <li class="devsite-footer-utility-item "> <a class="devsite-footer-utility-link gc-analytics-event" href="//web.archive.org/web/20230530220139/https://policies.google.com/privacy" data-category="Site-Wide Custom Events" data-label="Footer Privacy link"> Privacy </a> </li> <li class="devsite-footer-utility-item devsite-footer-utility-button"> <span class="devsite-footer-utility-description">Sign up for the Google for Developers newsletter</span> <a class="devsite-footer-utility-link gc-analytics-event" href="/web/20230530220139/https://developers.google.com/newsletter/subscribe" data-category="Site-Wide Custom Events" data-label="Footer Subscribe link"> Subscribe </a> </li> </ul> <devsite-language-selector> <ul role="presentation"> <li role="presentation"> <a role="menuitem" lang="en">English</a> </li> <li role="presentation"> <a role="menuitem" lang="id">Bahasa Indonesia</a> </li> <li role="presentation"> <a role="menuitem" lang="de">Deutsch</a> </li> <li role="presentation"> <a role="menuitem" lang="es">Español</a> </li> <li role="presentation"> <a role="menuitem" lang="es_419">Español – América Latina</a> </li> <li role="presentation"> <a role="menuitem" lang="fr">Français</a> </li> <li role="presentation"> <a role="menuitem" lang="it">Italiano</a> </li> <li role="presentation"> <a role="menuitem" lang="pl">Polski</a> </li> <li role="presentation"> <a role="menuitem" lang="pt_br">Português – Brasil</a> </li> <li role="presentation"> <a role="menuitem" lang="vi">Tiếng Việt</a> </li> <li role="presentation"> <a role="menuitem" lang="tr">Türkçe</a> </li> <li role="presentation"> <a role="menuitem" lang="ru">Русский</a> </li> <li role="presentation"> <a role="menuitem" lang="he">עברית</a> </li> <li role="presentation"> <a role="menuitem" lang="ar">العربيّة</a> </li> <li role="presentation"> <a role="menuitem" lang="fa">فارسی</a> </li> <li role="presentation"> <a role="menuitem" lang="hi">हिंदी</a> </li> <li role="presentation"> <a role="menuitem" lang="bn">বাংলা</a> </li> <li role="presentation"> <a role="menuitem" lang="th">ภาษาไทย</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_cn">中文 – 简体</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_tw">中文 – 繁體</a> </li> <li role="presentation"> <a role="menuitem" lang="ja">日本語</a> </li> <li role="presentation"> <a role="menuitem" lang="ko">한국어</a> </li> </ul> </devsite-language-selector> </nav> </div> </devsite-footer-utility> <devsite-panel></devsite-panel> </section></section> <devsite-sitemask></devsite-sitemask> <devsite-snackbar> </devsite-snackbar> <devsite-tooltip></devsite-tooltip> <devsite-heading-link></devsite-heading-link> <devsite-analytics analytics-iframe enable-ga4> <script type="application/json" analytics>[{"dimensions": {"dimension5": "en", "dimension3": false, "dimension6": "en", "dimension1": "Signed out", "dimension4": "Analytics for Web (analytics.js)", "dimension11": false}, "gaid": "UA-24532603-1", "metrics": {"ratings_count": "metric2", "ratings_value": "metric1"}}, {"dimensions": {"dimension5": "en", "dimension3": false, "dimension6": "en", "dimension1": "Signed out", "dimension4": "Analytics for Web (analytics.js)", "dimension11": false}, "gaid": "UA-41425441-2", "metrics": {"ratings_count": "metric2", "ratings_value": "metric1"}}]</script> <script type="application/json" tag-management gtm>{"ga4": ["G-272J68FCRF", "G-M12NNFS0D8"], "ga4p": ["G-272J68FCRF"], "gtm": [], "parameters": {"internalUser": "False", "language": {"machineTranslated": "False", "requested": "en", "served": "en"}, "pageType": "article", "projectName": "Analytics for Web (analytics.js)", "signedIn": "False", "tenant": "developers", "recommendations": {"sourcePage": "", "sourceType": 0, "sourceRank": 0, "sourceIdenticalDescriptions": 0, "sourceTitleWords": 0, "sourceDescriptionWords": 0, "experiment": ""}, "experiment": {"ids": ""}}, "tags": []}</script> </devsite-analytics> <devsite-badger></devsite-badger> <script nonce="z3VLA/uVR56HUGDt89eajAbaj5/9oQ"> (function(d,e,v,s,i,t,E){d['GoogleDevelopersObject']=i; t=e.createElement(v);t.async=1;t.src=s;E=e.getElementsByTagName(v)[0]; E.parentNode.insertBefore(t,E);})(window, document, 'script', 'https://web.archive.org/web/20230530220139/https://www.gstatic.com/devrel-devsite/prod/v4adef427db21a4cd79f489fce8da23c25ef3f53705a17ddcb0611ee166b2e610/developers/js/app_loader.js', '[1,"en",null,"/js/devsite_app_module.js","https://web.archive.org/web/20230530220139/https://www.gstatic.com/devrel-devsite/prod/v4adef427db21a4cd79f489fce8da23c25ef3f53705a17ddcb0611ee166b2e610","https://web.archive.org/web/20230530220139/https://www.gstatic.com/devrel-devsite/prod/v4adef427db21a4cd79f489fce8da23c25ef3f53705a17ddcb0611ee166b2e610/developers","https://web.archive.org/web/20230530220139/https://developers-dot-devsite-v2-prod.appspot.com",null,null,["/_pwa/developers/manifest.json","https://web.archive.org/web/20230530220139/https://www.gstatic.com/devrel-devsite/prod/v4adef427db21a4cd79f489fce8da23c25ef3f53705a17ddcb0611ee166b2e610/images/video-placeholder.svg","https://web.archive.org/web/20230530220139/https://www.gstatic.com/devrel-devsite/prod/v4adef427db21a4cd79f489fce8da23c25ef3f53705a17ddcb0611ee166b2e610/developers/images/favicon-new.png","https://web.archive.org/web/20230530220139/https://fonts.googleapis.com/css?family=Google+Sans_old:400,500|Roboto:400,400italic,500,500italic,700,700italic|Roboto+Mono:400,500,700&display=swap"],1,null,[1,6,8,12,14,17,21,25,40,50,52,63,70,75,76,80,87,91,92,93,97,98,100,101,102,103,104,105,107,108,109,110,111,112,113,115,117,118,120,122,124,125,126,127,129,130,131,132,133,134,135,136,138,140,141,144,147,148,149,150,151,152,154,155,156,157,158,159,161,163,164,165,168,169,170,172,173,179,180,182,183,186,190,191,193,196],"AIzaSyAP-jjEJBzmIyKR4F-3XITp8yM9T1gEEI8","AIzaSyB6xiKGDR5O3Ak2okS4rLkauxGUG7XP0hg","developers.google.com","AIzaSyAQk0fBONSGUqCNznf6Krs82Ap1-NV6J4o","AIzaSyCCxcqdrZ_7QMeLCRY20bh_SXdAYqy70KY",null,null,null,["MiscFeatureFlags__developers_footer_image","Cloud__enable_cloudx_ping","Cloud__enable_cloud_shell_fte_user_flow","Cloud__enable_free_trial_server_call","BookNav__enable_collapsible_book_nav","AuthorPageInsights__enable_author_page_insights","SignIn__enable_auto_signin_oauth","Experiments__enable_experiments","Cloud__enable_cloud_shell","Cloud__enable_cloudx_experiment_ids","Profiles__enable_profile_notifications_ui","Significatio__enable_by_tenant","BookNav__enable_book_nav_filtering","Profiles__enable_profile_collections","Profiles__enable_public_developer_profiles","Analytics__enable_ga4_analytics","MiscFeatureFlags__devpanel_url","MiscFeatureFlags__emergency_css","Significatio__enable_footprints","Profiles__enable_profile_communities","Profiles__enable_developer_profiles_dashboard_recommendations","Badges__enable_delete_badges","MiscFeatureFlags__enable_tls_version_for_gaia_calls","Cloud__enable_cloud_facet_chat","Rebranding__enable_rebranding","Search__enable_faceted_search","Profiles__enable_developer_profiles_callout","Badges__enable_drag_and_drop_badges","Localization__enable_locale_redirects","Search__enable_devsite_serp","Search__enable_page_map","MiscFeatureFlags__developers_footer_dark_image","Cloud__enable_cloud_dlp_service","Search__enable_suggestions_from_borg","Significatio__enable_experiment_id_caching","Experiments__reqs_query_experiments","Profiles__enable_developer_profiles_interests","Badges__enable_hide_badges","Search__enable_acl_suggestions","Profiles__enable_page_saving","Profiles__require_profile_eligibility_for_signin"],null,null,"AIzaSyBLEMok-5suZ67qRPzx0qUtbnLmyT_kCVE","https://web.archive.org/web/20230530220139/https://developerscontentserving-pa.googleapis.com","AIzaSyCM4QpTRSqP5qI4Dvjt4OAScIN8sOUlO-k","https://web.archive.org/web/20230530220139/https://developerscontentsearch-pa.googleapis.com"]') </script> <devsite-a11y-announce></devsite-a11y-announce> </body> </html><!-- FILE ARCHIVED ON 22:01:39 May 30, 2023 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 14:31:58 Dec 21, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 1.077 exclusion.robots: 0.059 exclusion.robots.policy: 0.042 esindex: 0.015 cdx.remote: 23.888 LoadShardBlock: 239.693 (6) PetaboxLoader3.datanode: 309.765 (7) load_resource: 682.967 PetaboxLoader3.resolve: 535.783 -->