Skip to content

Commit

Permalink
google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueSCar committed Feb 6, 2025
1 parent 5b21771 commit dddfc76
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,20 @@
}
],
script: [
{
{
src: "https://www.googletagmanager.com/gtag/js?id=G-BPYY3G7LL2",
async: true,
},
{
innerHTML: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-BPYY3G7LL2');
`,
},
{
src: "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",
async: true
},
Expand Down

0 comments on commit dddfc76

Please sign in to comment.