Parsing tag settings from gtag/js for Ga4 integration
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- analytics
Research direction
Start by tracing how this TypeScript component currently handles the Google Tag gtag/js URL, then review the listed GA4 settings such as internal traffic, unwanted referrals, and session timeout. Done means either those settings are parsed and respected or equivalent component settings are provided, with behavior verified against the reported integration problem.
Written by the indexing model from the issue text.
Description
Problem description
Google Analytics 4 (GA4) allows users to define various settings, including ones such as "Define internal traffic", "List unwanted referrals" and "Adjust session timeout" in the GoogleTag settings dialog. These settings are usually evaluated on the client side. They can be accessed using the URL format https://www.googletagmanager.com/gtag/js?id=G-TAGID&cx=c&_slc=1. Currently these settings are not parsed or taken into account.
Not only is this not expected by the user, but some of the resulting issues cannot be worked around in the current implementation. #24
Suggested Solution
-
Parse and respect tag settings
To solve this problem, it is necessary to implement a parser that can extract and respect the settings from the above gtag/js URL. These settings play a critical role in fine-tuning the GA4 integration and ensuring accurate tracking and reporting. -
Provide equivalents in the settings of the component.
Although less intuitive, this would also solve the problem.
- Dominant language
- TypeScript
- Stars
- 27
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
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.
More from managed-components/google-analytics-4
-
User ID gets ignoredOpen
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
managed-components/google-analytics-4#40 · 7 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
managed-components/google-analytics-4#39 · 1 comment · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
managed-components/google-analytics-4#38 · 1 comment · 1 reaction ·
-
Allow setting query parameters without prefix in tool settingsMay be free again @omarmosid claimed this 1110 days ago, and no pull request is open. Open
managed-components/google-analytics-4#24 · 2 comments · 1 assignee ·
All issues in managed-components/google-analytics-4
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoft/vscode-livepreview#876 ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
JustJarethB/invoicer#54 ·
-
ICP 1.2.0 shows a scheduled task's interval in milliseconds under the label "Interval (In seconds)"OpenNeeds Triage Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/product-integrator#2585 ·
Maintainers usually reply within 1 day
-
check:passed streams:add
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
design
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
MTES-MCT/monitor-field#119 ·
Maintainers usually reply within 1 day