Skip to content

Commit

Permalink
Merge pull request #37 from sekimura/elements-baseline
Browse files Browse the repository at this point in the history
Change baseline category for element-only tracking
  • Loading branch information
robflaherty committed Jul 9, 2014
2 parents dc1e6fc + e345a39 commit b926a35
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions jquery.scrolldepth.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@
googleTagManager = true;
}

// Establish baseline (0% scroll)
sendEvent('Percentage', 'Baseline');
if (options.percentage) {
// Establish baseline (0% scroll)
sendEvent('Percentage', 'Baseline');
} else if (options.elements) {
sendEvent('Elements', 'Baseline');
}

/*
* Functions
Expand Down

0 comments on commit b926a35

Please sign in to comment.