Is it possible to Access Events triggered by Napili Template standard components (Lightning Community)?
I need to call forceCommunity_analyticsInteraction on onclick event for standard components on Napili Template. Many thanks
Is it possible to Access Events triggered by Napili Template standard components (Lightning Community)?
I need to call forceCommunity_analyticsInteraction on onclick event for standard components on Napili Template. Many thanks
The available Events for communities are listed in the Lightning Communities Developer Guide:
Events
- forceCommunity:analyticsInteraction
- force:createRecord
- force:editRecord
- force:navigateToSObject
- force:navigateToList
- force:navigateToRelatedList
- force:navigateToURL
- force:navigateToObjectHome
- lightning:openFiles
- force:refreshView
- forceCommunity:routeChange
- forceCommunity:setActiveLanguage
- force:showToast
additionally, you can refer to Lightning Component Developer Guide: Event Reference
Furthermore -
forceCommunity:analyticsInteraction
Tracks events triggered by custom components in Communities and sends the data to Google Analytics.
NOT for Standard component interaction.
If you want to achieve what I think you are trying to do, you are better off using a static resource to track your scoped clicks on standard components.