Add Google Analytics tag to index.html

This commit is contained in:
Ray 2024-02-18 01:05:43 +11:00 committed by GitHub
parent d767678094
commit 79b8553d08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,15 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YFGH7MLHJ1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-YFGH7MLHJ1');
</script>
<meta charset="utf-8"> <meta charset="utf-8">
<title>reiyua</title> <title>reiyua</title>
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico"> <link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
@ -12,4 +21,4 @@
<p>This is my personal website.</p> <p>This is my personal website.</p>
<p>This is currently under construction.</p> <p>This is currently under construction.</p>
<p>Please check back soon.</p> <p>Please check back soon.</p>
</body> </body>