Skip to content

Commit 7aa54f7

Browse files
committed
gtag
1 parent 4521a8f commit 7aa54f7

File tree

3 files changed

+22
-26
lines changed

3 files changed

+22
-26
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ![logo](doc/logo.png?raw=true) Fancytree
22
[![GitHub version](https://badge.fury.io/gh/mar10%2Ffancytree.svg)](https://github.com/mar10/fancytree/releases/latest)
3-
[![Build Status](https://travis-ci.org/mar10/fancytree.svg?branch=master)](https://travis-ci.org/mar10/fancytree)
3+
[![Build Status](https://travis-ci.com/mar10/fancytree.svg?branch=master)](https://travis-ci.com/mar10/fancytree)
44
[![npm](https://img.shields.io/npm/dm/jquery.fancytree.svg)](https://www.npmjs.com/package/jquery.fancytree)
55
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/jquery.fancytree/badge)](https://www.jsdelivr.com/package/npm/jquery.fancytree)
66
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

bin/jsdoc3-moogle/tmpl/layout.tmpl

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44
<meta charset="utf-8">
55
<title>JSDoc: <?js= title ?></title>
66

7+
<!-- Start MOOGLE Changes -->
8+
<!-- Global site tag (gtag.js) - Google Analytics -->
9+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YEXL3TKFNZ"></script>
10+
<script>
11+
window.dataLayer = window.dataLayer || [];
12+
function gtag(){dataLayer.push(arguments);}
13+
gtag('js', new Date());
14+
15+
gtag('config', 'G-YEXL3TKFNZ');
16+
</script>
17+
<!-- End MOOGLE Changes -->
18+
719
<script src="scripts/prettify/prettify.js"> </script>
820
<script src="scripts/prettify/lang-css.js"> </script>
921
<!--[if lt IE 9]>
@@ -65,20 +77,6 @@
6577
</style>
6678
<span id="forkongithub"><a href="<?js= env.conf.templates.moogle.ghForkMe.url ?>">Fork me on GitHub</a></span>
6779
<?js } ?>
68-
69-
<!-- Google Analytics -->
70-
<?js if (env.conf.templates.moogle.analytics) { ?>
71-
<script>
72-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
73-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
74-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
75-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
76-
77-
ga('create', '<?js= env.conf.templates.moogle.analytics.ua ?>', '<?js= env.conf.templates.moogle.analytics.domain ?>');
78-
ga('send', 'pageview');
79-
</script>
80-
<?js } ?>
81-
8280
<!-- End MOOGLE Changes -->
8381

8482
</body>

doc/index.html

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,19 @@
44
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
55
<title>Fancytree Documentation</title>
66

7-
<script src="http://www.google-analytics.com/ga.js"></script>
7+
<!-- Global site tag (gtag.js) - Google Analytics -->
8+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YEXL3TKFNZ"></script>
9+
<script>
10+
window.dataLayer = window.dataLayer || [];
11+
function gtag(){dataLayer.push(arguments);}
12+
gtag('js', new Date());
13+
14+
gtag('config', 'G-YEXL3TKFNZ');
15+
</script>
816

917
<!-- Convert tabs to spaces and doc CSS -->
1018
<link rel="stylesheet" href="howto.css">
1119
<script src="howto.js"></script>
12-
13-
<script type="text/javascript">
14-
$(function(){
15-
// Log to Google Analytics, when not running locally
16-
if( document.URL.toLowerCase().indexOf('wwwendt.de/') >= 0 ) {
17-
var pageTracker = _gat._getTracker("UA-316028-1");
18-
pageTracker._trackPageview();
19-
}
20-
});
21-
</script>
2220
</head>
2321
<body>
2422
<h1>Fancytree Documentation</h1>

0 commit comments

Comments
 (0)