Block tracking from particular domain | Community
Skip to main content
raj_mandalapu
Level 7
August 7, 2020
Solved

Block tracking from particular domain

  • August 7, 2020
  • 4 replies
  • 1962 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Brian_Johnson_

@raj_mandalapu - Assuming you have control over the implementation, you can do what @vidurb80577666 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 

4 replies

Adobe Employee
August 7, 2020

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
Level 7
August 7, 2020
I want to fix this by using Exclude by IP configuration, but it is not working, any pointers?
Adobe Employee
August 7, 2020

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. 

Brian_Johnson_
Brian_Johnson_Accepted solution
Level 8
August 7, 2020

@raj_mandalapu - Assuming you have control over the implementation, you can do what @vidurb80577666 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 

jantzen_b
Adobe Employee
Adobe Employee
February 3, 2021
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?