Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ecedi/utmze
- Owner: ecedi
- License: mit
- Created: 2014-10-10T07:44:32.000Z (about 10 years ago)
- Default Branch: devel
- Last Pushed: 2014-12-05T12:33:29.000Z (about 10 years ago)
- Last Synced: 2024-10-30T09:52:13.735Z (2 months ago)
- Topics: campaign-tracking, ecedi, google-analytics, javascript, stick, utm-campaign, utmz-cookie
- Language: JavaScript
- Homepage: https://www.ecedi.fr
- Size: 188 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 ``