Get Product Performance Data Api - Is there any way to get this from my server instead of the browser?
We are using the performance data documented here: https://dy.dev/docs/get-product-performance#api-parameters
As is, this is available via the js SDK. Example:
DY.ServerUtil.getProductsData(["1217282-400", "1217282-600"], ['daily', 'twoDays'], 'view', false, function(err, res) { console.log(res) });
This means I can't render my content on the page until I can fetch this data client-side, which means I have content layout shift, reducing my performance score.
I'm wondering if there is a rest api or something similar I could use to fetch this data server-side, and therefore include this content in my server-side rendering?
Thanks, Aaron
-
Comentário oficial
Hi Aaron,
Thanks for your question.
Unfortunately at this stage we do not have an option to retrieve this data server-side. It is a requested feature which we hope to bring in the future.
Thanks,
Rachel
Ações de comentário
Por favor, entrar para comentar.
Comentários
1 comentário