DavidWells / DavidWells/analytics

Google Analytics - Allow enhanced conversions

Open
#503 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.