hey team! have a question, albeit maybe a bit obsc...
# support
m
hey team! have a question, albeit maybe a bit obscure, is there a way to disable Rudderstack on only certain pages for certain destinations? context: we have a Google Ads destination currently set up with the conversion linker enabled to deploy the gtag.js snippet and send events. however we only want it to use the gtag.js and send events from certain pages/urls, but only for this destination. We still want Rudderstack to fire/work normally for other destinations. Is something like this possible with Rudderstack?
h
m
thanks @hundreds-lifeguard-65770, but will we be able to prevent the code snip from being deployed to certain urls via a transformation?
the goal is two fold, prevent events from urls being sent and prevent the gtag.js from being added as well
haven’t found a solution to the latter yet unfortunately
h
you better off being in control of the loading then if it's critical to you
h
@millions-tent-65869 when you initialize rudderstack's JS SDK, use the below integrations object to filter the destinations you want to load:
Copy code
rudderanalytics.load(writeKey, dataplaneUrl, {
    integrations: {
        All:true,
       'Google Ads': false
    }
});
In other cases:
however we only want it to use the gtag.js and send events from certain pages/urls
Do not provide the
integrations
object in the load options. More details here: https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-javascript-sdk/load-js-sdk/#integrationopts
✅ 1
m
thanks for the insight everyone!