Skip to content
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

Parsing tag settings from gtag/js for Ga4 integration #25

Open
scamiv opened this issue Sep 12, 2023 · 1 comment
Open

Parsing tag settings from gtag/js for Ga4 integration #25

scamiv opened this issue Sep 12, 2023 · 1 comment

Comments

@scamiv
Copy link

scamiv commented Sep 12, 2023

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

  1. 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.

  2. Provide equivalents in the settings of the component.
    Although less intuitive, this would also solve the problem.

@kuba-orlik
Copy link
Contributor

Thanks! PRs for this functionality are welcome. We can help with review and general assistance in the process 🌱

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants