如何将Vue / NuxtJ与Ezoic集成?

时间:2020-03-24 10:47:19

标签: javascript vue.js nuxt.js server-side-rendering virtual-dom

Ezoic为网络发布者的广告,内容,布局等提供自动的网站情报。

Ezoic只能通过Cloudflare或名称服务器进行集成-https://support.ezoic.com/support/solutions/articles/48000453862-how-can-i-integrate-my-site-with-ezoic-

ezoic服务器正在用广告脚本替换广告占位符。

示例:

<span id="ezoic-pub-ad-placeholder-100"></span> ---> ad script

问题是我如何将其与NuxtJS和Vue连接起来。水合后,广告脚本将被删除并替换为占位符。我可以告诉Vue-不要重新提供那段代码吗?

组件代码:

<template>
    <div class="google-ads" :class="`google-ads--${type}`">
        <template v-if="type === 'top'">
            <!-- Ezoic - standard - top_of_page -->
            <div id="ezoic-pub-ad-placeholder-102"></div>
            <!-- End Ezoic - standard - top_of_page -->
        </template>
    </div>
</template>

0 个答案:

没有答案