According to this post (Using the call
dtrum.disable(), you can implement a dialog that enables your end users to stop sending monitoring data to Dynatrace, even after it’s been explicitly enabled) this feature should be available now but, still, dtrum.disable() throws an error.
Answer by Gary S. ·
Can you help us out here and share the version of the JS agent you have there?
In the browser console please share the output of dT_.version
In the example above, you see I have version 143. That JS function - dtrum.disable() - comes in v.145.
Hope it helps,