The Google Analytics integration provides an abstraction layer implemented in a JavaScript file
alx-integration-googleanalytics.js
which contains constructors for objects holding common
data and functions to track page views and events:
GaAccountData
for the web property id and domain names,GaPageviewData
for data related to a page view, such as the URL and the content id, andGaEventData
for data related to an observed event, such as event category and label.
These data objects are supplied to the implemented functions
gaTrackPageview
for tracking page views, andgaTrackEvent
for tracking events.
See JavaScript inline documentation for details.