Skip to content

Extend gtag <OutboundLink> component to accept custom Event Action, Category, Label and Value #29476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

harveysmurf
Copy link

Description

Add an option to pass custom Event Action,Category,Label,Value as props to the gtag <OutboundLink> component.
The change is similar to what has already been done to resolve #20337.

The documentation has been updated.

Related Issues

Related to #20337

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Feb 12, 2021
@harveysmurf harveysmurf changed the title Extend gtag <OutboundLink> component to accept Event Action, Category, Label and Value Extend gtag <OutboundLink> component to accept custom Event Action, Category, Label and Value Feb 12, 2021
@vladar vladar added topic: plugins-analytics Various analytics plugins like gatsby-plugin-google-analytics and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Feb 12, 2021
@harveysmurf harveysmurf force-pushed the gtag-outbound-link-props branch from 53039f9 to 31e0ca4 Compare February 16, 2021 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: plugins-analytics Various analytics plugins like gatsby-plugin-google-analytics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[gatsby-plugin-google-analytics] Pass event category, label, and action to the <OutboundLink> component
2 participants