Skip to content
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

feat: Amp 86005 add session tracking bookmarklet #594

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

justin-fiedler
Copy link
Contributor

@justin-fiedler justin-fiedler commented Sep 29, 2023

Summary

  • Add session tracking to autotrack bookmarklet for test data capture
  • Example session here
  • Need to capture more test sessions - WIP

Usage

  1. Generate the snippet.
    GENERATE_SNIPPET=true AMP_API_KEY=YOUR_API_KEY AMP_USER_ID=YOUR_USER_ID AMP_SERVER_ZONE=us yarn build
  2. Copy the bookmarklet code to clipboard.
    cat packages/analytics-browser/lib/scripts/amplitude-bookmarklet.html | pbcopy
  3. Create a new bookmark to the bookmarks bar in the browser. Paste the contents of step 2 for the url.
  4. Go to a site you want to record data for
    a. Click the bookmark, it will install autotracking & session recording on
    b. Click buttons, links, etc
    c. Whenever you load a new page you need to do step 4a again to reinstall autotracking.

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?:

@igrlk igrlk removed their request for review December 6, 2023 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants