Skip to content

Commit

Permalink
♻️ Use @nuxt/scripts for GA
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Dec 14, 2024
1 parent 95d6bed commit 79c0ae3
Show file tree
Hide file tree
Showing 4 changed files with 1,381 additions and 76 deletions.
1 change: 0 additions & 1 deletion components/copyableField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const props = defineProps<{
value: string
}>()
const { copy, copied, isSupported } = useClipboard({ source: props.value })
function onClickCopy() {
copy(props.value)
Expand Down
17 changes: 7 additions & 10 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,15 @@ export default defineNuxtConfig({
"Convert between Cosmos(cosmos1), Ethereum(0x) and different cosmos-based chain using bech32 address prefixes.",
},
],
link: [
{
rel: "preload",
href: "https://www.googletagmanager.com/gtag/js?id=G-J481P5HG5T",
as: "script",
},
],
},
},
modules: ["nuxt-gtag", "@vueuse/nuxt"],
gtag: {
id: "G-J481P5HG5T",
modules: ["@vueuse/nuxt", "@nuxt/scripts"],
scripts: {
registry: {
googleAnalytics: {
id: "G-J481P5HG5T",
},
},
},
plugins: ["~/plugins/node.client.ts"],
alias: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"postinstall": "nuxt prepare"
},
"dependencies": {
"@nuxt/scripts": "^0.9.5",
"@vueuse/core": "^11.2.0",
"@vueuse/nuxt": "^11.2.0",
"bech32": "^2.0.0",
"keccak256": "^1.0.6",
"nuxt": "^3.12.3",
"nuxt-gtag": "^3.0.1",
"vue": "latest"
}
}
Loading

0 comments on commit 79c0ae3

Please sign in to comment.