enableLinkTracking re-scan DOM after content changes

Hi,

The documentation recommends calling “enableLinkTracking” to re-scan the DOM after content containing new download links to track is added. However, when we call this, we get a console error:

“The method enableLinkTracking is registered more than once in “_paq” variable. Only the last call has an effect.”

Tracking appears to be correct, but we have customers complaining about the error message display.

Is there a way to have matomo re-scan the dom after content has been added via Ajax, specifically for download link tracking?

Thanks!

I think you are right that this function should not throw a warning and created