嘿,我正在尝试使用我的 nextjs 应用程序。但我不断收到此错误https://s.adroll.com/j/undefined/roundtrip.js net::ERR_ABORTED 403(禁止)。这是我在 _app.js 和 index.js 中设置的代码。关于发生了什么的任何想法,为什么它被阻止?
<div className={styles.mainbackground}>
<Script
dangerouslySetInnerHTML={{
__html: `
adroll_adv_id = ${process.env.ADROLL_ID};
adroll_pix_id = ${process.env.ADROLL_PIX_ID};
adroll_version = "2.0";
(function(w, d, e, o, a) {
w.__adroll_loaded = true;
w.adroll = w.adroll || [];
w.adroll.f = [ 'setProperties', 'identify', 'track' ];
var roundtripUrl = "https://s.adroll.com/j/" + adroll_adv_id
+ "/roundtrip.js";
for (a = 0; a < w.adroll.f.length; a++) {
w.adroll[w.adroll.f[a]] = w.adroll[w.adroll.f[a]] || (function(n) {
return function() {
w.adroll.push([ n, arguments ])
}
})(w.adroll.f[a])
}
e = d.createElement('script');
o = d.getElementsByTagName('script')[0];
e.async = 1;
e.src = roundtripUrl;
o.parentNode.insertBefore(e, o);
})(window, document);
adroll.track("pageView");
`,
}}
/>