DavidWells / DavidWells/analytics
Google Analytics - Allow enhanced conversions
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 267
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I was wondering how can I set allow_enhanced_conversions to true?
On GA/Ads docs says that you need to do the following:
gtag('config', 'TAG_ID', { ' allow_enhanced_conversions':true } ) ;
I couldn't find a way to do it with this lib under:
googleAnalytics({
measurementIds: ['G-XXXXXXXX'],
}),
I believe we must add a param to gtagConfig to the plugin (if I am not wrong, it's not typed -yet-):
googleAnalytics({
measurementIds: ['G-XXXXXXXX'],
gtagConfig: { allow_enhanced_conversions: true }
}),
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the googleAnalytics plugin configuration and trace how measurementIds are passed to gtag; the issue proposes adding a gtagConfig option. Done means this configuration accepts allow_enhanced_conversions and passes it through for the Google Analytics setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- analytics
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100