hnestmann / your-shop-here

an experimental reference storefront for b2c commerce
MIT License
1 stars 0 forks source link

Implement tagging #8

Open SGD1953 opened 8 months ago

SGD1953 commented 8 months ago

...for

  1. Einstein
  2. Analytics
  3. ActiveData

ideally this is abstracted via an event mechanism

hnestmann commented 8 months ago

I think we won't be able to use ISObject or the like, right?

I suggest we backport the explicit tracking approaches from PWA kit and combine https://github.com/SalesforceCommerceCloud/plugin_datalayer with https://partytown.builder.io/

SGD1953 commented 8 months ago

I like it!

We could use the reportingUrls approach from SFRA with maybe some polishing for the server tracking.

Einstein could just use the event tracking APIs via the datalayer.

ActiveData could leverage dwanalytics, dwac and then we could pretend to be a DHTML widget. As we run on "classic ecom", that should more or less work and the actual triggering could happen via datalayer too.