Are there ways to automatically deactivate a Target activity outside of setting a date and time? | Community
Skip to main content
August 21, 2023
Solved

Are there ways to automatically deactivate a Target activity outside of setting a date and time?

  • August 21, 2023
  • 1 reply
  • 784 views

I have a client who wants to automatically deactivate an A/B test once it reaches a certain amount of page views.

Is this possible?

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 Rajneesh_Gautam_

@egcnd  - I am afraid there's no way to achieve this outcome in an automated way. The only automated way I know of is disabling activities on specific date-time (https://experienceleague.adobe.com/docs/target/using/activities/activity-settings.html)

 

A possible solution could be to use Adobe Target APIs using an automated script which runs regularly (say hourly), however that will work for visitors and not for page-views. 

1. Run the reporting API for the specific activity (https://developers.adobetarget.com/api/#get-ab-performance-report)

2. Get the visitors for the activity after processing the response from step 1

3. If the visitor count from step 2 is more than your threshold then deactivate the activity using https://developers.adobetarget.com/api/#update-ab-activity 

 

Let me know if you need any more information. All the best!

 

Regards

Rajneesh

1 reply

Rajneesh_Gautam_
Community Advisor
Rajneesh_Gautam_Community AdvisorAccepted solution
Community Advisor
August 21, 2023

@egcnd  - I am afraid there's no way to achieve this outcome in an automated way. The only automated way I know of is disabling activities on specific date-time (https://experienceleague.adobe.com/docs/target/using/activities/activity-settings.html)

 

A possible solution could be to use Adobe Target APIs using an automated script which runs regularly (say hourly), however that will work for visitors and not for page-views. 

1. Run the reporting API for the specific activity (https://developers.adobetarget.com/api/#get-ab-performance-report)

2. Get the visitors for the activity after processing the response from step 1

3. If the visitor count from step 2 is more than your threshold then deactivate the activity using https://developers.adobetarget.com/api/#update-ab-activity 

 

Let me know if you need any more information. All the best!

 

Regards

Rajneesh