To exclude traffic by page DOM element or JavaScript variable? | Community
Skip to main content
collettec199516
September 27, 2021
Solved

To exclude traffic by page DOM element or JavaScript variable?

  • September 27, 2021
  • 2 replies
  • 942 views

Hi all,

 

Is there a way to exclude or to specific traffic by the content of the page, (DOM element or Javascript variable)?

Campaign trigger only when specific variable /element is within the targeting pages.

 

Many thanks!

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 Gaureshk_Kodag

Hi @collettec199516 

 

I guess in that case you'll need to fire mbox on dom ready event. Then create DL which returns some value if dom element is present. Pass it in mbox param and use it to create audience

 

Thanks.

2 replies

September 30, 2021

Can you give an example?

Gaureshk_Kodag
Adobe Employee
Gaureshk_KodagAdobe EmployeeAccepted solution
Adobe Employee
October 4, 2021

Hi @collettec199516 

 

I guess in that case you'll need to fire mbox on dom ready event. Then create DL which returns some value if dom element is present. Pass it in mbox param and use it to create audience

 

Thanks.