@cdalexndr opened this Issue on October 31st 2021

Expected Behavior

Track content impression/interraction.

Current Behavior

Impression/interraction not tracked.

Possible Solution

Listen DOM changes.

Steps to Reproduce (for Bugs)

  1. Load html using ajax containing a <select data-track-content data-content-name="name" data-content-piece="piece">
  2. Put the loaded html inside an element using Jquery.html() method
  3. After load, there is no network activity to notify content tracking

Note that if I put the select directly in my html it works as expected. Only problem is with dynamic loading.


Your Environment

  • Matomo Version: 4.5.0
  • PHP Version: PHP 7.4.25 (cli) (built: Oct 22 2021 18:03:01) ( NTS )
  • Server Operating System: docker image matomo:fpm-alpine
  • Additionally installed plugins:
  • Browser: Firefox
  • Operating System: Win10
@cdalexndr commented on October 31st 2021

Found workaround in FAQ

@tsteur commented on November 2nd 2021 Member

I'll keep this issue open so we can eventually improve this and detect these elements automatically. Thanks for creating this issue @cdalexndr

Powered by GitHub Issue Mirror