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

new defaults for v5 #169

Open
adamkasprowicz opened this issue Mar 18, 2019 · 0 comments
Open

new defaults for v5 #169

adamkasprowicz opened this issue Mar 18, 2019 · 0 comments

Comments

@adamkasprowicz
Copy link
Contributor

adamkasprowicz commented Mar 18, 2019

Config options defined in the previous version should still work.

AutoTracking / AutoCollector :

New default values:

   recordPageViewsOnExit : true // in v4 it was False

Changes in the behaviour:

   recordClicks: true // it means that we should record ALL clicks, not only on Links,

Cleaner syntax of the config, with additional options:

   clicks: {
     record: true,
     selectors: ['a', 'button', '.some-class-123', '#element1'], // record clicks only on these elements
     once: false, // remove event listener after an event happened
     position: {
       pointer: true, // record exact x,y position of the cursor/touch
       element: true // record element's x,y position
     }
   }

  views: {
    page: {
       record: true,
       // ...
    },
    element: {
      record: true,
      selectors: ['.track-element-view'],
      once: false
   }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant