-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improving the Install page #7443
Changes from 10 commits
f377615
a79cc31
c04a701
0d4206c
fec0008
2ccf886
3c5c09b
4018227
fb7c2a4
221677a
e865b45
c53b1a0
baca6d9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
joethreepwood marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
import Snippet from "../snippet.mdx" | ||
|
||
> This is the simplest way to get PostHog up and running on your website, and only takes a few minutes to set-up. | ||
This is the simplest way to get PostHog up and running. It only takes a few minutes. | ||
|
||
#### Add to your website & app | ||
#### Add to your website and product | ||
|
||
Paste this snippet within the `<head>` tags of your website - ideally just inside the closing `</head>` tag - on all pages that you wish to track. | ||
Copy the snippet below and replace `<ph_project_api_key>` and `<ph_instance_address>` with your project's values, then add it within the `<head>` tags of your product - ideally just before the closing `</head>` tag - on pages you want to track. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One thing is the <ph_project_api_key> and instance_address get automatically filled if those details are available (I think by using the logged in cookie), so there is a chance someone sees this and they don't have those values below. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm. Not sure I can see how we can accomodate that though. Probably best to leave it?
joethreepwood marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
You can find the snippet pre-filled with this data in [your project settings](https://app.posthog.com/project/settings). | ||
joethreepwood marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
<Snippet /> | ||
|
||
Be sure to replace `<ph_project_api_key>` and `<ph_instance_address>` with your project's values. (You can find the snippet pre-filled with this data in the PostHog app under Project / Settings. _(Quick links if you use [PostHog Cloud US](https://app.posthog.com/project/settings) or [PostHog Cloud EU](https://eu.posthog.com/project/settings))_ | ||
Once the snippet is added, PostHog automatically captures `$pageview` and [other events](/docs/data/autocapture) like button clicks. You can then enable other products, such as session replays, within [your project settings](https://us.posthog.com/settings/project-replay). | ||
joethreepwood marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
#### What this code does | ||
|
||
After adding the snippet to your website, it will automatically start to: | ||
|
||
- Capture `$pageview` events when a user visits a page | ||
- Track when users [click on links or buttons](/docs/data/autocapture) | ||
- [Record videos of user sessions](/docs/user-guides/recordings) that you can play back (if you've enabled the Session recordings feature, which we highly recommend!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.