org.http4k.connect.google.analytics.googleanalyticsExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http4k-connect-google-analytics Show documentation
Show all versions of http4k-connect-google-analytics Show documentation
http4k-connect-google-analytics
package org.http4k.connect.google.analytics
import kotlin.Int
import kotlin.String
import org.http4k.connect.google.analytics.action.Event
import org.http4k.connect.google.analytics.action.PageView
import org.http4k.connect.google.analytics.model.ClientId
/**
* @see org.http4k.connect.google.analytics.action.Event
*/
public fun GoogleAnalytics.event(
userAgent: String,
clientId: ClientId,
eventCategory: String,
eventAction: String,
eventLabel: String,
eventValue: Int? = null
) = invoke(Event(userAgent, clientId, eventCategory, eventAction, eventLabel, eventValue))
/**
* @see org.http4k.connect.google.analytics.action.PageView
*/
public fun GoogleAnalytics.pageView(
userAgent: String,
clientId: ClientId,
documentTitle: String,
documentPath: String,
documentHost: String
) = invoke(PageView(userAgent, clientId, documentTitle, documentPath, documentHost))
© 2015 - 2025 Weber Informatics LLC | Privacy Policy