#StackBounty: #magento2 #javascript #uicomponent #full-page-cache #ecommerce-tracking Non-cacheable Javascript snippets using UI compon…

Bounty: 250

I’m asking this question as I’m unsure about the best way to proceed.

I’ve ported a module from Magento 1 to Magento 2, and it includes some Javascript tracking snippets that contain a small amount of dynamic data, e.g. an extra line or two if you’ve just added a product to your cart.

I’m concerned that the full page cache in Magento 2 will get in the way of the dynamic nature of some of these snippets.

Questions:

  1. Do I need to worry about the FPC here?
  2. Should I be using a UI component for this?
  3. Would this be the recommended approach for implementing these kinds of things in Magento 2?


Get this bounty!!!