All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.http4k.connect.google.analytics.googleanalyticsExtensions.kt Maven / Gradle / Ivy

There is a newer version: 3.23.2.0
Show newest version
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