important-iron-82890
11/05/2022, 1:17 PMload function looks like this
e.load(WRITE_KEY, DATAPLANE_URL, { configUrl: DATAPLANE_URL, sendAdblockPage: true, sendAdblockPageOptions: {} });
When I read your documentation here, I can see that the SDK relies on calling google-analytics script in order to decide whether the adblock is active or not. However, I don't see this script being fetched. Is there a way I can debug this? Or is there something I'm missing?
Thanks.important-iron-82890
11/05/2022, 1:20 PMimportant-iron-82890
11/08/2022, 1:28 PMpage() call. I tried this from the documentation: https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-javascript-sdk/detecting-adblocked-pages/
Is that an expected behaviour and we need to use the implicit page() call mentioned here? If so, docs need some update.
Otherwise, looks like load() is not making the implicit call.important-iron-82890
11/11/2022, 5:12 PMe.load(WRITE_KEY, DATAPLANE_URL, { configUrl: DATAPLANE_URL, sendAdblockPage: true, sendAdblockPageOptions: {} });
e.page();important-iron-82890
11/11/2022, 5:13 PMimportant-iron-82890
11/11/2022, 5:14 PMpage() like mentioned in the documentation,
rudderanalytics.page(
"RudderJS-Initiated",
"ad-block page request", {
path: "/ad-blocked",
title: "error in script loading:: src:: http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js id:: ad-block"
},
sendAdblockPageOptions
);important-iron-82890
11/11/2022, 5:15 PMpage() call is sending "ad-block page request" even when the ad blocker is enabled on the page or not.important-iron-82890
11/11/2022, 5:15 PMimportant-iron-82890
11/11/2022, 5:15 PM