Skip to content

Commit

Permalink
Update readme and add referrer tracking back in
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebronner committed Oct 28, 2015
1 parent b10cc8c commit fa1df28
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ MixPanel is loaded into the IoC as a singleton. This means you don't have to man
described in the MixPanel docs. This is already done for you in the ServiceProvider.

Common user events are automatically recorded:
- Page View
- User Registration
- User Deletion
- User Login
Expand Down Expand Up @@ -174,6 +175,11 @@ the first name. Otherwise it will look for `first_name` and `last_name` fields i
- Url: <page URL>
- Route: <route name>
- Referrer: <referring URL>
- Referring Domain: <referring domain>
- IP (for geolocation)
- Browser
- Operating System
- Hardware
```

## Stripe Integration
Expand Down
1 change: 1 addition & 0 deletions src/LaravelMixpanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function track($event, $properties = [])
'Operating System' => $osVersion,
'Hardware' => $hardware,
'$browser' => $browserInfo->getName() . ' ' . $browserInfo->getVersion(),
'Referrer' => $this->request->header('referer'),
'$referring_domain' => ($this->request->header('referer')
? parse_url($this->request->header('referer'))['host']
: null),
Expand Down

0 comments on commit fa1df28

Please sign in to comment.