adobe / alloy-samples

Apache License 2.0
8 stars 13 forks source link

hybrid analytics strategy and debugging token #1

Closed jasonwaters closed 2 years ago

jasonwaters commented 2 years ago

Description

This PR documents the strategy used with Analytics to avoid double counting. It makes use of two data stream ids, one with analytics configured and the other without.

It also adds support for debugging konductor requests via griffon and the debugger extension. Here's how it works:

  1. When the debugger is used, it writes a first party cookie called kndctr_AdobeOrg_validation_token.
  2. The cookie is sent to the app server on subsequent requests.
  3. The app server reads the cookie and uses it when making requests to AEP edge by adding the value in the X-Adobe-AEP-Validation-Token request header.
  4. Griffon tracks the hit received using the validation token 🤑

A related PR will soon be opened in the debugger repo that adds the cookie setting ☝️ .

Related Issue

https://jira.corp.adobe.com/browse/TNT-45182