CMeeg / gridsome-source-kentico-kontent

Kentico Kontent data source plugin for Gridsome.
MIT License
6 stars 4 forks source link

Add a tracking header #7

Closed petrsvihlik closed 5 years ago

petrsvihlik commented 5 years ago

There's a tracking header called X-KC-SOURCE that you can add to your plugin. We'll be then able to measure the adoption of your plugin and send you statistics of API calls made through the plugin.

You can set the header via the Kentico Kontent Delivery SDK.

v5 JS SDK approach: https://github.com/Kentico/gatsby-source-kentico-cloud/commit/e3612ae18f6bfedeb1a51e8d754000b927151e28

v6 JS SDK: https://github.com/Kentico/gatsby-source-kentico-cloud/blob/js-sdk-ugrade-v6/src/gatsby-node.js#L96 or https://github.com/Kentico/gatsby-source-kentico-cloud/blob/master/src/gatsby-node.js#L96

CMeeg commented 5 years ago

Thanks @petrsvihlik - sounds good, I will take a look.