Skip to content

Commit

Permalink
adding google tag
Browse files Browse the repository at this point in the history
  • Loading branch information
atheer0998 committed Dec 1, 2024
1 parent b887617 commit e19b5c8
Showing 1 changed file with 39 additions and 27 deletions.
66 changes: 39 additions & 27 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default defineNuxtConfig({
ssr: true,
devtools: {enabled: false},
devtools: { enabled: false },
typescript: {
shim: false
},
Expand All @@ -18,43 +18,55 @@ export default defineNuxtConfig({
lang: 'en'
},
meta: [
{name: "viewport", content: "width=device-width, initial-scale=1"},
{charset: "utf-8"},
{"http-equiv": 'X-UA-Compatible', content: "IE=edge"},
{name: 'keywords', content: ''},
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ charset: "utf-8" },
{ "http-equiv": 'X-UA-Compatible', content: "IE=edge" },
{ name: 'keywords', content: '' },
{
name: 'description',
content: 'Where your technological future, comes today. The limits to technology uses is beyond imagination, digitize your life with us'
},
{name: 'author', content: 'Six Degrees Technologies'}
{ name: 'author', content: 'Six Degrees Technologies' }
],
link: [
{rel: 'shortcut icon', href: '/assets/imgs/favicon.ico'},
// Google Fonts
{ rel: 'shortcut icon', href: '/assets/imgs/favicon.ico' },
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900&display=swap'
},
// CSS
{rel: 'stylesheet', href: '/assets/fonts/mona-sans/style.css'},
{rel: 'stylesheet', href: '/assets/css/plugins.css'},
{rel: 'stylesheet', href: '/assets/css/style.css'},
{ rel: 'stylesheet', href: '/assets/fonts/mona-sans/style.css' },
{ rel: 'stylesheet', href: '/assets/fonts/SST/style.css' },
{ rel: 'stylesheet', href: '/assets/css/plugins.css' },
{ rel: 'stylesheet', href: '/assets/css/style.css' },
],
script: [
{ src: '/assets/js/plugins.js' },
{ src: '/assets/js/isotope.pkgd.min.js' },
{ src: '/assets/js/wow.min.js' },
{ src: '/assets/js/gsap.min.js' },
{ src: '/assets/js/ScrollTrigger.min.js' },
{ src: '/assets/js/ScrollSmoother.min.js' },
{ src: '/assets/js/scripts.js', defer: true },

// Google Tag
{
rel: 'stylesheet',
href: 'https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.5.0/font/bootstrap-icons.min.css'
hid: 'google-tag',
src: 'https://www.googletagmanager.com/gtag/js?id=AW-16793981677',
async: true
},
{
hid: 'google-tag-config',
innerHTML: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-16793981677');
`,
type: 'text/javascript',
body: true
}
],
script: [
{src: '/assets/js/bootstrap.bundle.min.js'},
{src: '/assets/js/plugins.js'},
{src: '/assets/js/isotope.pkgd.min.js'},
{src: '/assets/js/wow.min.js'},
{src: '/assets/js/gsap.min.js'},
{src: '/assets/js/ScrollTrigger.min.js'},
{src: '/assets/js/ScrollSmoother.min.js'},
{src: '/assets/js/scripts.js', defer: true},
{src: 'https://unpkg.com/@splinetool/[email protected]/build/spline-viewer.js', type: 'module'} // Add Spline viewer script
]
__dangerouslyDisableSanitizers: ['script'] // Allow inline scripts
}
},
css: [
Expand All @@ -78,7 +90,7 @@ export default defineNuxtConfig({
if (typeof config.server!.hmr === 'object') {
config.server!.hmr.protocol = process.env.HMR_PROTOCOL || 'ws';
}
},
}
},
i18n: {
lazy: true,
Expand Down Expand Up @@ -109,4 +121,4 @@ export default defineNuxtConfig({
detectBrowserLanguage: false,
vueI18n: "./i18n.config.ts",
},
});
});

0 comments on commit e19b5c8

Please sign in to comment.