Skip to content

Commit 36fff93

Browse files
committed
add 0.1.0 to changelog and usage example
1 parent 13783a1 commit 36fff93

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ pip install macadamia
2121
{'domain_hash': '208940939', 'campaign_number': '1', 'campaign_data': {'source': '(direct)', 'campaign_name': '(direct)', 'medium': '(none)'}, 'timestamp': datetime.datetime(2013, 4, 5, 8, 33, 4), 'session_counter': '1'}
2222
```
2323

24+
```python
25+
>>> from macadamia import parse_cookie
26+
>>> cookie_to_parse = "208940939.1365186784.1.1.fiztmcsr=(direct)|fiztmccn=(direct)|fiztmcmd=(none)"
27+
>>> parsed_cookie = parse_cookie(cookie_to_parse, prefix="fiztm")
28+
>>> {'domain_hash': '208940939', 'campaign_number': '1', 'campaign_data': {'source': '(direct)', 'campaign_name': '(direct)', 'medium': '(none)'}, 'timestamp': datetime.datetime(2013, 4, 5, 8, 33, 4), 'session_counter': '1'}
29+
```
2430

2531
###__utma Visitor Cookie (lasts 2 years)
2632
Used to distinguish users and sessions. The cookie is created when the javascript library executes and no existing __utma cookies exists. The cookie is updated every time data is sent to Google Analytics.
@@ -102,6 +108,7 @@ make test
102108

103109
## Changelog
104110

111+
* 0.1.0: Support cookies shaped like `_utmz` but with a different name
105112
* 0.0.7: Actually add Python 3 compatibility and upgrade Dockerfile base image to test against Python 3.7
106113
* 0.0.6: Python 3 compatibility and add Dockerfile for development
107114
* 0.0.5: Fix typo parsing `utmgclid` cookie value

0 commit comments

Comments
 (0)