Learn how to validate your Adobe Experience Platform Web SDK implementation with Adobe Experience Platform Debugger.
The Experience Platform Debugger is an extension available for Chrome and Firefox browsers, which helps you see the Adobe technology implemented in your web pages. Download the version for your preferred browser:
If you have never used the debugger before, you might want to watch this five-minute overview video:
In this lesson, you use the Adobe Experience Platform Debugger extension to replace the tag property hardcoded on the Luma demo site with your own property.
This technique is called environment switching and will be helpful later, when you work with tags on your own website. It allows you to to load your production website in your browser, but with your development tags library. This ability enables you to confidently make and validate tags changes independently from your regular code releases. After all, this separation of marketing tag releases from your regular code releases is one of the main reasons customers use tags in the first place!
At the end of this lesson, you will be able to use the debugger to:
You are familiar with Data Collection tags and the Luma demo site and have completed the previous lessons in the tutorial:
The Experience Platform Debugger has a cool feature that allows you to replace an existing tag library with a different one. This technique is useful for validation and allows us to skip many implementation steps in this tutorial.
Make sure you have the Luma demo website open and select the Experience Platform Debugger extension icon
The Debugger will open and show some details of the hardcoded implementation (you may need to reload the Luma site after opening the Debugger)
Confirm that the Debugger is “Connected to Luma” as pictured below and then select the “lock” icon to lock the Debugger to the Luma site.
Select the Sign In button and sign into Adobe Experience Cloud using your Adobe Id.
Now, go to Experience Platform Tags in the left navigation
Select the Configuration tab
To the right of where it shows you the Page Embed Codes, open the Actions dropdown, and select Replace
Since you are authenticated, the Debugger is going to pull in your available tag properties and environments. Select your property
Select your Development
environment
Select the Apply button
The Luma website will now reload with your own tag property.
As you continue the tutorial, you use this technique of mapping the Luma site to your own tag property to validate your Platform Web SDK implementation. When using tags on your own website, you can use this same technique to validate development tag libraries on your production website.
You can use the Debugger to validate client-side beacons triggered from your Platform Web SDK implementation to view the data sent to Platform Edge Network:
Go to Summary in the left navigation, to see the details of your tag property
Now, go to Experience Platform Web SDK in the left navigation to see the Network Requests
Open the events row
Note how you can see the web.webpagedetails.pageView
event type you specified in your Update variable action, and other, out-of-the-box variables adhering to the AEP Web SDK ExperienceEvent
field group
Scroll down to the web
object, select to open it and inspect the webPageDetails.name
, webPageDetails.server
, and webPageDetails.siteSection
. They should match the corresponding digitalData
data layer variables on the homepage
To view and compare the digitalData
data layer on the homepage:
F12
on your keyboarddigitalData
and select Enter
on your keyboard to bring up the data layer valuesYou can also validate the Identity Map details:
Log in to the Luma site using the credentials test@adobe.com
/test
Return to the Luma homepage
Open the Experience Platform Web SDK section in the left navigation
Select the events row to open details in a pop-up
Search for the identityMap within the pop-up. Here you should see lumaCrmId
with three keys of authenticatedState, id, and primary:
These types of request details are also visible in the browser’s web developer tools Network tab (assuming the website is loading your tag library).
Open the browser’s web developer tools Network tab and reload the page. Filter for calls with /ee
to locate the call, select it, and then look in the Headers tab, and Payload tab
Go to the Response tab and note how the ECID value is included in the response.
The ECID value is visible in the network response. It is not included in the identityMap
portion of the network request, nor is it stored in this format in a cookie.
As you learned in the Configure a datastream lesson, Platform Web SDK first sends data from your digital property to Platform Edge Network. Then, Platform Edge Network makes additional server-side requests to the corresponding services enabled in your datastream. You can validate the server-side requests made by Platform Edge Network by using Edge Trace in the Debugger.
To enable Edge Trace:
In the left navigation of Experience Platform Debugger select Logs
Select the Edge tab, and select Connect
It is empty for now
Refresh the Luma home page and check Experience Platform Debugger again, to see data come through.
At this point, you are not able to view any Platform Edge Network requests going to Adobe applications because you have not enabled any in the datastream. In future lessons, you use Edge Trace to view the outgoing server-side requests to Adobe applications and event forwarding. But first, learn about another tool to validate server-side requests made by Platform Edge Network—Adobe Experience Platform Assurance!
Thank you for investing your time in learning about Adobe Experience Platform Web SDK. If you have questions, want to share general feedback, or have suggestions on future content, please share them on this Experience League Community discussion post