diff --git a/src/mixins/nft.js b/src/mixins/nft.js index abb4c5446b..5953eaa658 100644 --- a/src/mixins/nft.js +++ b/src/mixins/nft.js @@ -203,7 +203,7 @@ export default { if (this.nftIsNFTBook) { return this.iscnDescription || this.NFTClassMetadata.description || ''; } - return this.NFTClassMetadata.description; + return this.NFTClassMetadata.description || ''; }, nftDescription() { const overrideKey = `nft_override_${this.classId}_description`; diff --git a/src/plugins/gtag.client.js b/src/plugins/gtag.client.js index e4426c09cd..d00f9ed3ba 100644 --- a/src/plugins/gtag.client.js +++ b/src/plugins/gtag.client.js @@ -12,8 +12,12 @@ export default (ctx, inject) => { Vue.use( VueGtag, { - config: { id: process.env.GA_TRACKING_ID }, - bootstrap: !(window.doNotTrack || navigator.doNotTrack), + config: { + id: process.env.GA_TRACKING_ID, + allow_enhanced_conversions: !( + window.doNotTrack || navigator.doNotTrack + ), + }, includes, }, router diff --git a/src/util/EventLogger.js b/src/util/EventLogger.js index dc527a739f..137df5e985 100644 --- a/src/util/EventLogger.js +++ b/src/util/EventLogger.js @@ -78,6 +78,9 @@ export function updateLoggerUserInfo( }; vue.$sentry.setUser(opt); } + if (vue.$gtag) { + if (email) vue.$gtag.set('user_data', { email }); + } if (vue.$crisp) { if (email) { vue.$crisp.push(['set', 'user:email', [email, crispToken]]);