Skip to content

Commit

Permalink
Merge pull request #82 from hathitrust/fix-analytics
Browse files Browse the repository at this point in the history
fix matomo function
  • Loading branch information
carylwyatt authored May 16, 2024
2 parents a4bc624 + f9879c3 commit 8506228
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/lib/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export class AnalyticsManager {

}

addMatomoScript() {
//need the arrow function syntax for 'this' to be defined
addMatomoScript = () => {
var d = document,
g = d.createElement('script'),
s = d.getElementsByTagName('script')[0];
Expand Down

0 comments on commit 8506228

Please sign in to comment.