alanta / Kontent.Statiq

Module to retrieve content from Kentico Kontent for building static websites with Statiq
MIT License
10 stars 2 forks source link

Add X-KC-SOURCE header #12

Closed petrsvihlik closed 4 years ago

petrsvihlik commented 4 years ago

Implement a tracking header according to this: https://github.com/Kentico/Home/wiki/Guidelines-for-Kontent-related-tools#analytics

Example: Key Value
X-KC-SOURCE Kontent.Statiq;1.0.0-beta0004
alanta commented 4 years ago

@petrsvihlik I'd love to do this but in the current setup the main module accepts an IDeliveryClient, which doesn't allow me to inject a header.

petrsvihlik commented 4 years ago

let me take a look at what can be done. we definitely don't want to cut off this option in the .NET Delivery SDK

petrsvihlik commented 4 years ago

would this fit the needs? https://github.com/Kentico/kontent-delivery-sdk-net/pull/237

Simply007 commented 4 years ago

I would say this one is still not closed right? It was probably closed unintentionally because of GitHub keywords

alanta commented 4 years ago

@Simply007 you're right... I need a fresh release of the delivery sdk to finish this.

petrsvihlik commented 4 years ago

https://www.nuget.org/packages/Kentico.Kontent.Delivery/14.0.0 here you go :)