Background
We currently have a flag in the datalayer that when it's set to false
Adobe Analytics code will not run.
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 flag
to false and it no longer pulls in the Adobe Analytics script from our page.
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.
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 if
statement and _satellite.getVar()
in the s_code
to determine whether or not the AppMeasurement
got instantiated.
This was a dismal failure. Not only _satellite.getVar()
is unavailable but even just setting the if(false)
doesn't work. While I thought that only the s_code
would instantiate the AppMeasurement
, apparently just having the tool active in DTM means that there are direct calls to the AppMeasurement function.
Does anyone who is more familiar with this tool have any ideas that would allow us to determine whether Adobe Analytics
runs based off of some sort of content change (we use the data layer but I'm open to all suggestions) on the page.
Thanks a lot for your time, Mike