Skip to content

Commit

Permalink
tracking code updates - (#71)
Browse files Browse the repository at this point in the history
* tracking code updates -

changed aquasec's the tracking codes to use the google tag manager instead of the old non-ga4 analytics

* updated the nvd_page page types descriptions for seo purposes
  • Loading branch information
tabakman authored Jul 11, 2023
1 parent bf4f6d2 commit 8c84b0c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
32 changes: 27 additions & 5 deletions themes/aquablank/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,22 @@
{{ .Scratch.Set "seo_title" .Title | safeHTML }}
{{ .Scratch.Add "seo_title" " | Vulnerability Database | Aqua Security" }}

{{ .Scratch.Set "seo_description" .Title | safeHTML }}
{{ .Scratch.Add "seo_description" " " }}
{{ .Scratch.Add "seo_description" (.Params.id | safeHTML | truncate 150) }}
{{ .Scratch.Add "seo_description" " " }}
{{ .Scratch.Add "seo_description" (.Params.severity | safeHTML | truncate 150) }}
{{ if eq "nvd_page" .Params.avd_page_type }}
{{ .Scratch.Set "seo_description" .Title | safeHTML }}
{{ .Scratch.Add "seo_description" " Vulnerability, " }}
{{ .Scratch.Add "seo_description" "Severity " }}
{{ .Scratch.Set "seo_description" .Params.cvss_nvd_v3_score | safeHTML }}
{{ .Scratch.Add "seo_description" " " }}
{{ .Scratch.Set "seo_description" .Params.cvss_nvd_v3_severity | safeHTML }}
{{ .Scratch.Add "seo_description" ", " }}
{{ .Scratch.Add "seo_description" (.Params.header_subtitle | safeHTML | truncate 110) }}
{{ else }}
{{ .Scratch.Set "seo_description" .Title | safeHTML }}
{{ .Scratch.Add "seo_description" " | " }}
{{ .Scratch.Add "seo_description" (.Params.id | safeHTML | truncate 150) }}
{{ .Scratch.Add "seo_description" " | " }}
{{ .Scratch.Add "seo_description" (.Params.severity | safeHTML | truncate 150) }}
{{ end }}

{{ end }}

Expand All @@ -45,9 +56,20 @@
<link rel="stylesheet" href="https://maxst.icons8.com/vue-static/landings/line-awesome/font-awesome-line-awesome/css/all.min.css">
<script type='text/javascript' src='{{ "js/avdblank.js" | relURL }}'></script>
<script type='text/javascript' src='{{ "js/iac.js" | relURL }}'></script>

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5N9T3H');</script>
<!-- End Google Tag Manager -->
</head>

<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5N9T3H" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

{{ partial "header" . }}

Expand Down
1 change: 0 additions & 1 deletion themes/aquablank/layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<!-- avd header starts -->
<div class="avd_header_wrap">
{{ template "_internal/google_analytics.html" . }}
<div class="header_navbar_wrap">
<nav class="navbar">
<div class="container is-small">
Expand Down

0 comments on commit 8c84b0c

Please sign in to comment.