Skip to content

Commit 1186ee0

Browse files
DOC/WEB: update Google Analytics id (#53954)
1 parent 7e0bcf1 commit 1186ee0

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

doc/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
"footer_start": ["pandas_footer", "sphinx-version"],
241241
"github_url": "https://github.com/pandas-dev/pandas",
242242
"twitter_url": "https://twitter.com/pandas_dev",
243-
"analytics": {"google_analytics_id": "UA-27880019-2"},
243+
"analytics": {"google_analytics_id": "G-5RE31C1RNW"},
244244
"logo": {"image_dark": "https://pandas.pydata.org/static/img/pandas_white.svg"},
245245
"navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"],
246246
"switcher": {

web/pandas/_templates/layout.html

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script type="text/javascript">
5-
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-27880019-2']); _gaq.push(['_trackPageview']);
6-
(function() {
7-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
8-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
9-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
10-
})();
4+
<script async="async" src="https://www.googletagmanager.com/gtag/js?id=G-5RE31C1RNW"></script>
5+
<script>
6+
window.dataLayer = window.dataLayer || [];
7+
function gtag(){ dataLayer.push(arguments); }
8+
gtag('js', new Date());
9+
gtag('config', 'G-5RE31C1RNW');
1110
</script>
1211
<title>pandas - Python Data Analysis Library</title>
1312
<meta charset="utf-8">

0 commit comments

Comments
 (0)