Skip to content

Commit c5e4a39

Browse files
committed
Use named arguments
1 parent a189e14 commit c5e4a39

File tree

1 file changed

+4
-1
lines changed
  • packages/gatsby-plugin-google-analytics/src

1 file changed

+4
-1
lines changed

packages/gatsby-plugin-google-analytics/src/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ function OutboundLink(props) {
1919
}
2020

2121
if (window.ga) {
22-
window.ga(`send`, `event`, `outbound`, `click`, props.href, {
22+
ga(`send`, `event`, {
23+
eventCategory: `Outbound Link`,
24+
eventAction: `click`,
25+
eventLabel: props.href,
2326
transport: `beacon`,
2427
hitCallback: function() {
2528
if (redirect) {

0 commit comments

Comments
 (0)