-
Notifications
You must be signed in to change notification settings - Fork 5
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
[addon:google-analytics]: Add support for Google Analytics 4 #3
Comments
please be aware, that due to gdpr, you have to ask your users if they wan't to accept/load google analytics or not. in Austria and France it is illegal to use it at all (current court cases). |
Oh for sure. This is for internal tracking purposes. |
Is there a workaround until this addon gets updated? |
And updates/ workarounds for this? |
I had to use an alternative library to use GA4 tracking. Maybe this solution will help someone. |
Currently in the process of this, do you mind showing a code snippet of how you did this in the manage.js file? |
@steveoh-rose I decided not to implement the GA4 configuration in manage.js. I put it in preview.js (I needed to track events within components). Configuration looks like:
|
Please add support for the new tracking IDs for Google Analytics 4. Google is moving from Universal Analytics (UA) to Google Analytics 4 (GA4) and it seems like the current addon doesn't support GA4 IDs.
The text was updated successfully, but these errors were encountered: