Skip to content

Commit

Permalink
More updates for front end integration
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Dec 30, 2019
1 parent 4889860 commit e26db74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Here as example of session tracking for [goal conversions](front_end.md)
- Supports both pure API token context and user token context (run your own site)
- Automatically handles cookies and updating session tokens
- Set tokens using [cookie headers](examples/examples.js), automatically parses cookie values
- Use our [front_end.js](examples/front_end.js) for capturing a visitor session (goal conversions)
- Use our [front_end.js](front_end.md) for capturing a visitor session (goal conversions)
- Coverage for the [TonicPow.com API](https://docs.tonicpow.com/)
- [x] [Authentication](https://docs.tonicpow.com/#632ed94a-3afd-4323-af91-bdf307a399d2)
- [x] [Users](https://docs.tonicpow.com/#50b3c130-7254-4a05-b312-b14647736e38)
Expand Down
4 changes: 2 additions & 2 deletions front_end.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ All requests to web applications have the parameter `?tncpw_session=user-session
You can use your own implementation for storing the `tncpw_session` and sending it to your back-end application.
[Goal conversions](https://docs.tonicpow.com/#caeffdd5-eaad-4fc8-ac01-8288b50e8e27) require the user's `tncpw_session`

Here is [an example](examples/front_end.js) using some vanilla js for capturing the session.
Here is [an example - font_end.js](examples/front_end.js) using some vanilla js for capturing the session.

**Capture The Session**
**Capture The Session From URL**
```javascript
let urlParams = new URLSearchParams(window.location.search)
let sessionId = urlParams.get('tncpw_session')
Expand Down

0 comments on commit e26db74

Please sign in to comment.