Testing & Debugging Adobe Target Campaigns
Tags: testing, adobe, debugging
Published: 2022-12-12 17:01:41

---
title: Testing & Debugging Adobe Target Campaigns
published: true
date: 2022-12-12 16:59:38 UTC
tags: testing,adobe,debugging
canonical_url: https://requestly.com/blog/testing-debugging-adobe-target-campaigns/
---

[Adobe Target](https://business.adobe.com/in/products/target/adobe-target.html) is one of the solutions under Adobe Experience Cloud that enables user-testing (like A/B tests) & personalization on your web & mobile apps. Adobe Target can be implemented on Single-page apps through JS library, Server-side apps through Delivery API and on Mobile apps through Native SDKs. You can integrate Adobe Target on your site either by directly integrating Adobe Target JS snippet or through Adobe Launch (DTM aka satellite). This article focuses on testing & debugging of Adobe Target campaigns (included with Adobe Launch).

**Who’s this article for** : Whether you are Adobe Target developer, Solutions consultant, Customer Success Engineer, or a Product Manager the following tips are going to help you in debugging Target campaigns.

**Source & Credits:** This wouldn’t have been possible without talking to lots of solution consultants who use Requestly everyday to develop, test & debug Adobe Target campaigns on their customers’ sites.

### Outline

Here is a list of few things that we will cover in details one by one:

1. Loading unminified version of Adobe Launch tag for faster debugging
2. Test your solution on live Customer Sites without deploying the changes
3. Automatically loading sites in Target debug mode
4. Identifying when Adobe Target tag is loaded on the page
5. Injecting Adobe Target (or DTM) tag on sites where tag isn’t present
6. Blocking Adobe Launch/Target call to check original experience
7. Sharing the recording of Adobe Target campaign delivery along with video, campaign information & console logs.

### Prerequisite

You can go through the content of this article with no pre-requisites but if you have Requestly Installed then you can also follow along and repeat the steps on your machine easily. You can get Requestly from [Chrome Store for Chrome](https://chrome.google.com/webstore/detail/redirect-url-modify-heade/mdnleldcmiljblolnjhpnblkcekpdkpa)or from [Downloads Page for Other Platforms.](https://requestly.com/downloads)

‍

### Loading unminified version of Adobe Launch Tag 🚀

Debugging minified scripts on production sites is a nightmare. Fortunately, Adobe publishes unminified version of its Adobe Launch tag and can be accessed by removing .min from the URL.

{% youtube 3esnRDWUBdU %}

You can use Requestly to automatically load the unminified version on live production sites. This enables you to inspect & read all the code & put breakpoints in Chrome DevTools Sources Tab.

![](https://cdn-images-1.medium.com/max/1024/0*dnJ1kL7x8QP1clxh.png)

If you have Requestly Installed, then you can [import the Requestly Rule using this link.](https://app.requestly.io/rules/#sharedList/1670843504109-Sachin-shared-list-12-12-2022)

### Testing dev changes directly on live customer sites without deployment 🔥

When you implement a new feature or fix a bug, you can directly test the changes on live production sites without having to deploy them. Here’a blog post that explains how you can [redirect the Adobe Launch prod tag to the dev/staging/local version of the tag](https://requestly.com/blog/how-to-load-local-script-in-production-in-adobe-launch/) in Chrome, Firefox & Safari.

![](https://cdn-images-1.medium.com/max/881/0*N-Tqr84W3ySTxYjv.png)

The way it works is when the browser tries to load the production version of Adobe Launch tag, Requestly intercepts it and instead load the development/staging version of the tag as you configure in the Redirect Rule.  
‍

> _💡 Bonus Tip — You can use_ [_Requestly File Server_](https://app.requestly.io/files/my-files) _to upload/host your JS code and use in the Redirect Rule configuration._‍

### Automatically loading sites in Debug Mode (Add mboxDebug query parameter) ⚡️

Adobe Target prints a lot of information in browser console when the page URL has mboxDebug query parameter. For example — If you load a site that is running an Adobe Target campaign (e.g. [https://some-adobe-target-customer.com/?mboxDebug=1),](https://some-adobe-target-customer.com/?mboxDebug=1),) you will see the following information in console logs

- Request & Response of Target campaign
- Important Information like marketingCloudVisitorId, tntId, etc.
- Campaign Information like ActivityName, ExperienceName, & Different page actions that are part of experience/variation
- When an Adobe Target action is trying to be applied & when successfully applied
- Eventually if any target action is failed to apply

![](https://cdn-images-1.medium.com/max/1024/0*CK7PnYKfsZbhwaBr.png)

![](https://cdn-images-1.medium.com/max/1024/0*yGqG0Hn3ENWbygHy.png)

Ofcourse, you can add this parameter manually to the page URL and reload the page but Requestly can automate it for you. You can use Requestly QueryParams Rule to automatically add the parameter to some or all pages that you open.

Here’s the Rule definition that you can [Import in a Single Click!](https://requestly.com/blog/testing-debugging-adobe-target-campaigns/)

### Get an Alert when Adobe Target tag is loaded on the page ⏰

![](https://cdn-images-1.medium.com/max/1024/0*N6M5vu6NfVePWceo.png)

You may want to be notified when Adobe Target is loaded on the page so that you can test whether the campaign is delivered fine and do other validations. There can be multiple solutions to this but here’s a simple one that can be customised with simple knowledge of JS.

![](https://cdn-images-1.medium.com/max/1024/0*bAZGzqmbemztFykC.png)

Basically, we are using Requestly Insert Script feature to run a script on the page after 5 seconds of page load to check for adobe & adobe target fields on global window object. Like mentioned earlier, this can be customised to do more aggressive & more robust check depending upon use-case.

Here’s the Rule definition that you can [import in a Single Click!  
‍](https://app.requestly.io/rules/#sharedList/1670845587452-Sachin-shared-list-12-12-2022)

> _💡 Bonus Tip — You can use Insert Script feature to Inject Adobe DTM tag on sites where the tag isn’t present and use the setup in a demo or pre-integration testing purposes._‍

### Blocking Adobe Launch Tags to test default experience/performance 🛑

One of the Requestly users compared site performance with & without Adobe Launch tag present when her client complained that the site is getting slow because of the tag. She used Requestly Block Requests rule to block the loading of Adobe Launch tag and then she calculated performance report. It was very helpful for her to convince the client that it’s not the tag that is impacting the performance.

![](https://cdn-images-1.medium.com/max/1024/0*XoLiWVqNdbIGTQwA.png)

It’s very simple to block the script (or any script or API) using Requestly Block/Cancel Requests Rule & check the default experience or performance of the site.

Here’s the rule definition that you can[import in single click!](https://app.requestly.io/rules/#sharedList/1670845850223-Sachin-shared-list-12-12-2022)‍

### Sharing the Adobe Target campaign Info along with video, campaign information & console logs. 📒

Requestly provides a feature called Session Recording that allows users to configure a list of domains for which sessions should be auto-recorded. You can use session recording along with mboxDebug parameter combination to pass the campaign context (campaign delivery Info, video & console logs) to the campaign implementation manager when something goes wrong. It’d fasten the entire process of launching & debugging the campaign.

![](https://cdn-images-1.medium.com/max/1024/0*DSdyb1RXOmuJPiJT.png)

Here’s a screenshot from the session that shows the campaign Information being captured along with the video & console logs on the customer site.

Check out the [recording of a sample session](https://app.requestly.io/sessions/saved/Jd0ocygH6fXfRnxT4Thn)!

If you have Requestly Installed, you can [configure the domains](https://app.requestly.io/sessions) and sessions will be auto-recorded when you browser those pages and you can share them with your colleagues for faster debugging.

### Conclusion ❤️️

We compiled a few tips & tricks for debugging Adobe Target (& Launch) and we’re barely scratching the surface. With the power of Requestly, you can achieve a lot of debugging superpowers. Here’s a [link to import all the rules in a single click!](https://app.requestly.io/rules/#sharedList/1670847105039-Adobe-DTM-Tips-and-Tricks)

Happy Campaigning!  
‍

[SJ](https://www.linkedin.com/in/sachin-jain-20b20731/)- Founder & CEO, Requestly.

That’s it for now! Hope you enjoyed reading it. Feel free to connect if you have any questions!

_Originally published at_ [_https://requestly.com_](https://requestly.com/blog/testing-debugging-adobe-target-campaigns/)_._