Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ecedi/utmze

A source and campaign tracking alternative to Google Analytics UTMZ cookie
https://github.com/ecedi/utmze

campaign-tracking ecedi google-analytics javascript stick utm-campaign utmz-cookie

Last synced: about 2 months ago
JSON representation

A source and campaign tracking alternative to Google Analytics UTMZ cookie

Awesome Lists containing this project

README

        

# ecedi/utmze by [Agence Ecedi](http://ecedi.fr)

This is an alternative solution for tracking campaign as __utmz cookie is no more available with Google Analytics Universal

## installation

### edit your composer.json file and add

```json
{
"require": {
"ecedi/utmze": "dev-master",
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/ecedi/utmze"
}
]
}
```

## features

this script will emulate __utmz cookie behavior to track traffic source, campaign and medium (other data are not supported so far)

### campaign behavior

campaign aka utmccn is false by default, when a GET parameter utm_campaign is set, it will be stored and stick until another utm_campaign is found

### medium behavior

medium aka utmcmd is false by default, when a GET parameter utm_medium is set, it will be stored and stick until another utm_campaign is found

### source behavior

Source aka utmcsr is a little bit more tricky:
it is (direct) by default,when a GET parameter utm_source is set, it will be stored and stick until another utm_source is found

## Usage

### javascript side

in header
```javascript



```

before ``