Provides an instance of GA based on the metrics ID Allows sending events to Google Analytics
Link for Google Analytics pre-configuration in Eitri:
Example usage:
Eitri.tracking.GA.init("G-00000").then(gtag => {
gtag("event", "event_name", {
"debug_mode": true,
"page": "/MyPage"
})
}).catch(e => {
console.log("Eitri.tracking.GA.init.error: ", e)
});
event - Type of hit being sent to GA
debug_mode - Allows debugging this hit in GA
page - Example of a custom parameter
Generated using TypeDoc
Set of tools for tracking eitri-apps
Available tools: