piwik.js: refactoring trackGoal, trackPageView, and trackLink #1751
Labels
Task
Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Milestone
trackGoal and trackPageView both send page view and browser settings. Since it's conceivable that both might be called on the same page, we can optimize piwik.js to only send the payload once per page.
Propose: send the payload once for trackPageView(), trackGoal(), and trackLink(), unless setCustomUrl() or setReferrerUrl() are called. As a side effect, this should allow for additional refactoring that reduces the size of piwik.js.
The text was updated successfully, but these errors were encountered: