Skip to content

Commit

Permalink
manually insert GA-4 code
Browse files Browse the repository at this point in the history
  • Loading branch information
billyc committed Jan 10, 2024
1 parent 2a48bac commit 381ccf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module.exports = {
evergreen: true,
head: [
['script', { src: 'https://cdn.jsdelivr.net/pyodide/v0.22.0/full/pyodide.js' }],
['script', { async: true, src: 'https://www.googletagmanager.com/gtag/js?id=G-2DCTYTB7FB'}],
['script', "window.dataLayer=window.dataLayer|| []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-2DCTYTB7FB');"],
['link', { rel: 'stylesheet', href: 'https://use.fontawesome.com/releases/v5.2.0/css/all.css' }],
['link', { rel: 'icon', href: '/tiny-logo.png' }],
[
Expand Down Expand Up @@ -67,7 +69,7 @@ module.exports = {
additionalArgs: '--no-merge',
},
],
['vuepress-plugin-minimal-analytics', { ga: 'G-2DCTYTB7FB' }],
// ['vuepress-plugin-minimal-analytics', { ga: 'G-2DCTYTB7FB' }],
],
title: 'TF Resource',
themeConfig: {
Expand Down

0 comments on commit 381ccf3

Please sign in to comment.