How do I invalidate or remove an Analytics implementation?

Sometimes an organization would like to remove an implementation due to contract expiration or to reduce the number of server calls.

  • Implementations using Adobe Experience Platform Data Collection: Disable or uninstall the applicable Adobe Analytics, Web SDK, or Mobile SDK extension in the Extensions tab, then publish.
  • Legacy AppMeasurement implementations: Replace the entire contents of your s_code.js file with the following line of code:
var s = new Object();
WARNING
Do not:
  • Change the report suite to an invalid value, as it creates unnecessary load on Adobe’s servers.
  • Remove the s_code.js file altogether, unless you also remove all references to the file on each page.
  • Change the trackingServer variable to point away from Adobe. AppMeasurement still sends image requests, which return 404 errors.

I ran AppMeasurement through a code analyzer, and it flagged its usage of Math.random() as a potential security risk. Is Math.random() used with any sensitive data?

No. The numbers that use Math.random() are not used to mask, send, or receive any sensitive data. Data sent to Adobe data collection servers rely on the security of the underlying HTTPS connection.

AppMeasurement uses Math.random() in three key areas:

  • Sampling: Depending on your implementation, some information could be gathered for only a small percentage of visitors to your site. Math.random() is used to determine if a given visitor should send data. Most implementations do not use sampling.
  • Fallback visitor ID: If the visitor ID cannot be retrieved from cookies, a random visitor ID is generated. This part of AppMeasurement uses two calls to Math.random().
  • Cache busting: A random number is added to the end of image request URLs to help prevent browser caching.

Announcements

Get hands-on with agentic AI.

Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.

Find an event

Ask AI

Not sure where to start?
Ask me anything about Adobe products.

Type your question or pick a suggestion below.

Use of this AI chatbot is subject to Adobe's Privacy Policy. Don't share sensitive data. AI responses are not your Content, may be inaccurate, and any offers provided are non-binding. Generative AI Terms.

Ask AI