Skip to content

Commit

Permalink
Use named arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Apr 1, 2018
1 parent a189e14 commit c5e4a39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/gatsby-plugin-google-analytics/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ function OutboundLink(props) {
}

if (window.ga) {
window.ga(`send`, `event`, `outbound`, `click`, props.href, {
ga(`send`, `event`, {
eventCategory: `Outbound Link`,
eventAction: `click`,
eventLabel: props.href,
transport: `beacon`,
hitCallback: function() {
if (redirect) {
Expand Down

0 comments on commit c5e4a39

Please sign in to comment.