Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Block tracking from particular domain

raj_mandalapu
Community Advisor
Community Advisor

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
evolytics_brian
Correct answer by
Community Advisor
Community Advisor

@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
vibhatna
Level 5
Level 5

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.

raj_mandalapu
Community Advisor
Community Advisor
I want to fix this by using Exclude by IP configuration, but it is not working, any pointers?
vibhatna
Level 5
Level 5

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. 

evolytics_brian
Correct answer by
Community Advisor
Community Advisor

@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

jantzen_belliston-Adobe
Community Manager
Community Manager
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?