Expand my Community achievements bar.

SOLVED

Block tracking from particular domain

Avatar

Level 8

I don't want to track requests coming from the particular domain, I tried Exclude by IP and bot rules options but, still, it did not work out, any pointers on this will help us lot.

 

Thanks

Raj.

1 Accepted Solution

Avatar

Correct answer by
Level 8

@raj_mandalapu - Assuming you have control over the implementation, you can do what @vibhatna suggested and remove it entirely from pages on the offending domain. Another option might be to leverage s.abort as part of your doPlugins logic to stop analytics calls from firing only when/if it's the offending domain. For example:

s.doPlugins = function(s) {
  if (document.location.hostname === "www.ignorethisdomain.com") {
    s.abort = true; // stops the analytics call from firing
  }
};

More information about s.abort can be found here: https://docs.adobe.com/content/help/en/analytics/implementation/vars/config-vars/abort.html 

View solution in original post

5 Replies

Avatar

Employee

You can either get the VISTA rule created with the help of Engineering team to discard hits coming from a particular domain or can remove the Adobe Analytics implementation form that particular domain.

Avatar

Level 8
I want to fix this by using Exclude by IP configuration, but it is not working, any pointers?

Avatar

Employee

Exclude by IP is used to exclude the traffic coming from specific IPs.
Bot rules are used to exclude the traffic coming from specific IPs or User Agent. 

They won't help in blocking the requests from a particular domain. 

Avatar

Correct answer by
Level 8

@raj_mandalapu - Assuming you have control over the implementation, you can do what @vibhatna suggested and remove it entirely from pages on the offending domain. Another option might be to leverage s.abort as part of your doPlugins logic to stop analytics calls from firing only when/if it's the offending domain. For example:

s.doPlugins = function(s) {
  if (document.location.hostname === "www.ignorethisdomain.com") {
    s.abort = true; // stops the analytics call from firing
  }
};

More information about s.abort can be found here: https://docs.adobe.com/content/help/en/analytics/implementation/vars/config-vars/abort.html 

Avatar

Level 10
Do any of the answers below answer your initial question? If so, can you select one of them as the correct answer? If none of the answers already provided answer your question, can you provide additional information to better help the community solve your question?