Skip to content

Commit

Permalink
Remove public Tracker.init method
Browse files Browse the repository at this point in the history
Initialize directly in the constructor.
  • Loading branch information
tomalec authored Mar 7, 2024
1 parent 7397997 commit 6baa840
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions assets/js/src/tracker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,7 @@ class Tracker {
throw new Error( 'Cannot instantiate more than one Tracker' );
}
instance = this;
instance.init();
}

/**
* Initializes the tracker and dataLayer if not already done.
*/
init() {
window.dataLayer = window.dataLayer || [];

function gtag() {
Expand Down

0 comments on commit 6baa840

Please sign in to comment.