Status: Awaiting PM Review
Affects Version/s: None
Fix Version/s: None
Component/s: Content Display Widgets > Web Content Display widget
Developers of widgets, fragments and templates can use the Journal Article taglib to render a web content with a specific template. For example:
Produces this HTML:
Notice that the HTML contains data-analytics-* attributes. When Analytics Cloud is enabled, the Analytics Cloud client will automatically track a view event when that code is displayed.
However, in some cases developers may want to render a web content without tracking that particular view event (e.g. in a teaser). Currently, it is not possible to skip this event.
This story aims to provide a mechanism for developers to selectively disable the tracking of the view web content event when using the journal article taglib. By default, the bevahior will be the current one.
- Given Analytics Cloud tracking is configured
- When a web content is rendered (e.g. in an ADT) with the journal-article taglib and the attribute dataAnalyticsTrackEnabled is set to "false"
- Then viewing the page where the web content is rendered does not registers a view of that web content in AC. The generated HMTL looks like: