Skip to content

Commit

Permalink
Placeholders for Universal and Classic analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
ediblecode committed Sep 20, 2016
1 parent 0168e75 commit c270faf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/javascripts/tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ export function trackEvent(category: string,
return sendDataLayerEvent(category, action, label, value, callback);

// TODO: Implement GA Classic & Universal
if(trackingLibrary() == Universal)
throw new Error("Universal analytics not implemented yet");

if(trackingLibrary() == Classic)
throw new Error("Classic analytics not implemented yet");

// If no tracking library is available then reject the promise straight away.
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit c270faf

Please sign in to comment.