utm

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package utm extracts campaign parameters from page paths.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	Source   string
	Medium   string
	Campaign string
	Term     string
	Content  string
}

Params holds standard UTM query fields.

func FromPath

func FromPath(rawPath string) (path string, p Params)

FromPath splits path and query, extracts utm_* params, and returns a path without utm_* query keys (other query params are preserved).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL