Switch ads provider, and switch the analytics system to Ariadne (#214)

* Switch ads provider, and switch the analytics system to Ariadne

* Fix CI error

* Remove debug messages and errors

* Updated nuxtjs
This commit is contained in:
Redblueflame
2021-05-18 16:48:26 +02:00
committed by GitHub
parent c97cba69b9
commit 12d86493bf
12 changed files with 8695 additions and 9400 deletions

View File

@@ -30,6 +30,7 @@ export default async function (ctx, inject) {
const collapseEmptyDivs =
config.collapseEmptyDivs ??
'<%= options.collapseEmptyDivs || false %>' === 'true'
const ethicalAds = config.ethicalAds === 'true'
const GeoEdgeId = config.GeoEdgeId ?? '<%= options.geoEdgeId %>'
const networkCode = config.networkCode ?? '<%= options.networkCode %>'
const GPT_LIB_SCRIPT_ID = '<%= options.GPT_LIB_SCRIPT_ID %>'
@@ -53,6 +54,12 @@ export default async function (ctx, inject) {
ctx.app.head.script.push(script)
}
}
Vue.component('GptAd', {})
if (ethicalAds) {
return
}
const noConsent = !isPersonalizedAdsOn(ctx)
// GeoEdge support