diff --git a/src/components/Footer.vue b/src/components/Footer.vue index a5d84395e..9ae286415 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -65,7 +65,14 @@
{{ $t('footer_nav_store_books') }} diff --git a/src/components/NFTBook/ItemCardV2.vue b/src/components/NFTBook/ItemCardV2.vue index 83141ab61..20b5955e9 100644 --- a/src/components/NFTBook/ItemCardV2.vue +++ b/src/components/NFTBook/ItemCardV2.vue @@ -67,6 +67,10 @@ export default { type: Boolean, default: true, }, + internalMedium: { + type: String, + default: '', + }, }, data() { return { diff --git a/src/components/SiteHeader.vue b/src/components/SiteHeader.vue index 5da43908c..21b848a9d 100644 --- a/src/components/SiteHeader.vue +++ b/src/components/SiteHeader.vue @@ -23,7 +23,12 @@
@@ -421,6 +422,7 @@ class-cover-frame-aspect-ratio="min-h-[360px] laptop:min-h-[0] aspect-[4/5]" :cover-resize="300" :is-link-disabled="item.isMultiple" + :utm-medium="$route.query.utm_medium || 'index_bookstore_item'" @click-cover="handleClickItem($event, item)" /> @@ -452,6 +454,9 @@ @@ -571,7 +576,9 @@ name: 'store', query: { tag: 'autograph', - utm_source: 'landing_page_signature_banner_cta', + utm_medium: + $route.query.utm_medium || + 'landing_page_signature_banner_cta', }, }) " diff --git a/src/pages/store/index.vue b/src/pages/store/index.vue index 44ef16a72..761f203da 100644 --- a/src/pages/store/index.vue +++ b/src/pages/store/index.vue @@ -309,6 +309,7 @@ :item-id="item.classId" class-cover-frame-aspect-ratio="aspect-[4/5]" :is-link-disabled="item.isMultiple" + :utm-medium="utmMedium" @click-cover="handleClickItem($event, item)" /> @@ -706,6 +707,21 @@ export default { } return baseUrl; }, + internalMedium() { + const { + query: { ll_medium: qsMedium, tag, q }, + } = this.$route; + if (qsMedium) { + return qsMedium; + } + if (tag) { + return `tag-${tag}`; + } + if (q) { + return 'search'; + } + return ''; + }, // Price filter related priceFilterList() { return [