mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-16 20:50:41 +08:00
Google Analytics: switch from UA to GA4
From <https://support.google.com/analytics/answer/10759417>: > Google Analytics 4 is replacing Universal Analytics. On July 1, 2023 all standard Universal Analytics properties will stop processing new hits. I wonder if Google Analytics is worth the trouble.
This commit is contained in:
@@ -152,8 +152,8 @@ src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]-->
|
|||||||
<pre><code>169.254.169.254</code></pre>
|
<pre><code>169.254.169.254</code></pre>
|
||||||
<h3 id="server">But I Want My Own DNS Server!</h3>
|
<h3 id="server">But I Want My Own DNS Server!</h3>
|
||||||
<p>If you want to run your own DNS server, it's simple: you can compile from <a href=
|
<p>If you want to run your own DNS server, it's simple: you can compile from <a href=
|
||||||
"https://github.com/cunnie/sslip.io/tree/main/src/sslip.io-dns-server">source</a> or you can use one
|
"https://github.com/cunnie/sslip.io/tree/main/src/sslip.io-dns-server">source</a> or you can use one of our
|
||||||
of our <a href="https://github.com/cunnie/sslip.io/releases">pre-built binaries</a>. In the following example, we
|
<a href="https://github.com/cunnie/sslip.io/releases">pre-built binaries</a>. In the following example, we
|
||||||
install & run our server within a docker container:</p>
|
install & run our server within a docker container:</p>
|
||||||
<pre>
|
<pre>
|
||||||
docker run -it --rm fedora
|
docker run -it --rm fedora
|
||||||
@@ -364,22 +364,14 @@ Placed at the end of the document so the pages load faster -->
|
|||||||
<script src=
|
<script src=
|
||||||
"https://raw.githubusercontent.com/twbs/bootstrap/master/docs/assets/js/ie10-viewport-bug-workaround.js"></script>
|
"https://raw.githubusercontent.com/twbs/bootstrap/master/docs/assets/js/ie10-viewport-bug-workaround.js"></script>
|
||||||
<!-- Google Analytics -->
|
<!-- Google Analytics -->
|
||||||
|
<!-- Google tag (gtag.js) -->
|
||||||
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M32C798MGY"></script>
|
||||||
<script>
|
<script>
|
||||||
(function(i, s, o, g, r, a, m) {
|
window.dataLayer = window.dataLayer || [];
|
||||||
i['GoogleAnalyticsObject'] = r;
|
function gtag(){dataLayer.push(arguments);}
|
||||||
i[r] = i[r] || function() {
|
gtag('js', new Date());
|
||||||
(i[r].q = i[r].q || []).push(arguments)
|
|
||||||
}, i[r].l = 1 * new Date();
|
gtag('config', 'G-M32C798MGY');
|
||||||
a = s.createElement(o), m = s.getElementsByTagName(
|
|
||||||
o)[0];
|
|
||||||
a.async = 1;
|
|
||||||
a.src = g;
|
|
||||||
m.parentNode.insertBefore(a, m)
|
|
||||||
})(window, document, 'script',
|
|
||||||
'//www.google-analytics.com/analytics.js', 'ga');
|
|
||||||
ga('create', 'UA-43107212-2', 'auto');
|
|
||||||
ga('send', 'pageview');
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user