Skip to content

Commit

Permalink
Fix: "hit" event now sends hash parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ungvert committed Aug 29, 2020
1 parent 12aad80 commit da0574c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports.onRouteUpdate = function({ location }, pluginOptions) {
typeof window.ym !== `undefined` &&
location
) {
const { pathname, search } = location;
window.ym(pluginOptions.trackingId, 'hit', pathname + search);
const { pathname, search, hash } = location;
window.ym(pluginOptions.trackingId, "hit", pathname + search + hash);
}
}

0 comments on commit da0574c

Please sign in to comment.