mirror of
https://github.com/conventional-commits/conventionalcommits.org.git
synced 2024-11-15 02:45:15 +01:00
feat: add google analytics (#227)
This commit is contained in:
parent
8937421aa1
commit
1a18c01591
@ -1,17 +1,29 @@
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
|
||||
<head>
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-2173276-5"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
<title>{{ .Param "Title" }}</title>
|
||||
<meta name="description" content="{{ .Param "Description" }}"/>
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,maximum-scale=1,user-scalable=no">
|
||||
gtag('config', 'UA-2173276-5');
|
||||
</script>
|
||||
|
||||
<!-- Twitter Card data -->
|
||||
<meta name="twitter:card" content="{{ .Param "Description" }}">
|
||||
<meta name="twitter:title" content="{{ .Param "Title" }}">
|
||||
<meta name="twitter:description" content="{{ .Param "Description" }}">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
|
||||
|
||||
<!-- Open Graph data -->
|
||||
<meta property="og:title" content="{{ .Param "Title" }}"/>
|
||||
<meta property="og:type" content="article"/>
|
||||
<meta property="og:url" content="{{ .Permalink }}"/>
|
||||
<meta property="og:description" content="{{ .Param "Description" }}"/>
|
||||
<meta property="og:site_name" content="{{ .Param "Title" }}"/>
|
||||
<title>{{ .Param "Title" }}</title>
|
||||
<meta name="description" content="{{ .Param "Description" }}"/>
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,maximum-scale=1,user-scalable=no">
|
||||
|
||||
<!-- Twitter Card data -->
|
||||
<meta name="twitter:card" content="{{ .Param "Description" }}">
|
||||
<meta name="twitter:title" content="{{ .Param "Title" }}">
|
||||
<meta name="twitter:description" content="{{ .Param "Description" }}">
|
||||
|
||||
<!-- Open Graph data -->
|
||||
<meta property="og:title" content="{{ .Param "Title" }}"/>
|
||||
<meta property="og:type" content="article"/>
|
||||
<meta property="og:url" content="{{ .Permalink }}"/>
|
||||
<meta property="og:description" content="{{ .Param "Description" }}"/>
|
||||
<meta property="og:site_name" content="{{ .Param "Title" }}"/>
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user