Skip to content

Commit

Permalink
DOC/WEB: update Google Analytics id (pandas-dev#53954)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche authored Jul 1, 2023
1 parent 7e0bcf1 commit 1186ee0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
"footer_start": ["pandas_footer", "sphinx-version"],
"github_url": "https://github.com/pandas-dev/pandas",
"twitter_url": "https://twitter.com/pandas_dev",
"analytics": {"google_analytics_id": "UA-27880019-2"},
"analytics": {"google_analytics_id": "G-5RE31C1RNW"},
"logo": {"image_dark": "https://pandas.pydata.org/static/img/pandas_white.svg"},
"navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"],
"switcher": {
Expand Down
13 changes: 6 additions & 7 deletions web/pandas/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-27880019-2']); _gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
<script async="async" src="https://www.googletagmanager.com/gtag/js?id=G-5RE31C1RNW"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){ dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-5RE31C1RNW');
</script>
<title>pandas - Python Data Analysis Library</title>
<meta charset="utf-8">
Expand Down

0 comments on commit 1186ee0

Please sign in to comment.