Can I use Autotrack on a single-page website?

Whether or not Autotrack will work on a single-page website depends largely on the nature of the elements included on the page:

  • Autotrack tracks clicks and form submissions by binding click listeners to specific HTML elements, so Autotrack knows when someone clicks a specific element with a selector based on the element’s HTML class or ID.
  • Autotrack is not able to track dynamic elements, or cases where the classes and IDs of dynamically populated content do not stay consistent.

If the elements on your single-page website have consistent classes or IDs, Autotrack should work; however, if this is not the case, there will be limitations to Autotrack, and traditional track calls via the Mixpanel JavaScript library may be a better option.

Additional resources

JavaScript implementation reference

Additional Autotrack resources

Find your answer?
0 out of 0 found this helpful



Article is closed for comments.