title: Kill Switch for Adobe Analytics using DTM
body: <p><strong>Background</strong></p>
  
  <p>We currently have a flag in the datalayer that when it's set to <code>false</code> Adobe Analytics code will not run.</p>
  
  <p>We do this for a multitude of reasons, including if we find any security concerns within the product or within the data that we are capturing. We set the <code>flag</code> to false and it no longer pulls in the Adobe Analytics script from our page.</p>
  
  <p>Ideally, we are trying to mimic this exact functionality within DTM without having to approve and publish anything. We just want to be able to set something in the db and it's immediately available on all pages and we don't have to worry about the company software elevation policies.</p>
  
  <p>That said, I was thinking that since data elements load on the page first, that I could grab the value from the data layer and then use an <code>if</code> statement and <code>_satellite.getVar()</code> in the <code>s_code</code> to determine whether or not the <code>AppMeasurement</code> got instantiated.</p>
  
  <p>This was a dismal failure. Not only <code>_satellite.getVar()</code> is unavailable but even just setting the <code>if(false)</code> doesn't work. While I thought that only the <code>s_code</code> would instantiate the <code>AppMeasurement</code>, apparently just having the tool active in DTM means that there are direct calls to the AppMeasurement function.</p>
  
  <p>Does anyone who is more familiar with this tool have any ideas that would allow us to determine whether <code>Adobe Analytics</code> runs based off of some sort of content change (we use the data layer but I'm open to all suggestions) on the page.</p>
  
  <p>Thanks a lot for your time,
  Mike</p>