diff --git a/analytics/core.go b/analytics/core.go index 6837304541d..891e4b48ade 100644 --- a/analytics/core.go +++ b/analytics/core.go @@ -43,6 +43,7 @@ type AmpObject struct { Request *openrtb.BidRequest AuctionResponse *openrtb.BidResponse AmpTargetingValues map[string]string + RequestHeader map[string][]string Origin string StartTime time.Time } diff --git a/endpoints/openrtb2/amp_auction.go b/endpoints/openrtb2/amp_auction.go index dc66163a699..96fa666bd2c 100644 --- a/endpoints/openrtb2/amp_auction.go +++ b/endpoints/openrtb2/amp_auction.go @@ -96,9 +96,10 @@ func (deps *endpointDeps) AmpAuction(w http.ResponseWriter, r *http.Request, _ h start := time.Now() ao := analytics.AmpObject{ - Status: http.StatusOK, - Errors: make([]error, 0), - StartTime: start, + Status: http.StatusOK, + Errors: make([]error, 0), + StartTime: start, + RequestHeader: r.Header, } // Set this as an AMP request in Metrics.