Comments (9)
@likecodeingloveproblems It's good to hear that! Contributors are the best people around!
It's actually simple, as for the code change:
- You'd have to adjust the regular expression in templatetags/google_analytics_gtag.py, so that it allows the patterns @carlosnasillo listed above.
- And, of course, also align the related tests.
The test suite should then pass. Try running tox
locally. It should all be green. Then you're ready to push your changes and open a pull request.
Mastering GitHub
If you've never made a contribution on GitHub (or GitLab or Bitbucket, and the like) there are a few things you need to learn, but the good news is there are also loads of nice tutorials that explain how to do it, e.g.
- http://blog.davidecoppola.com/2016/11/howto-contribute-to-open-source-project-on-github/
- https://www.dataschool.io/how-to-contribute-on-github/
- https://guides.github.com/activities/forking/
Go forward, step by step! Come back here to ask for help if needed! 🚀 👍 💯
from django-analytical.
thanks
you are really kind
1.You'd have to adjust the regular expression in templatetags/google_analytics_gtag.py, so that it allows the patterns @carlosnasillo listed above.
it is already adjusted to regular expression "^G-[a-zA-Z0-9]+$"
2.And, of course, also align the related tests.
and all test by running tox passed
from django-analytical.
Thanks, Carlos, for reporting this problem.
Can you suggest a specific change? Do you want to try a PR?
from django-analytical.
Hi, I hope to solve this problem.
but i am new to git contribution.
can you help me to solve it?
from django-analytical.
@carlosnasillo Can you clarify your statement?
As a result Django-analytical does no longer support for any of the new google analytics integrations.
A G-XXXX...
ID seems to be accepted by django-analytical, see PROPERTY_ID_RE in google_analytics_gtag.py
.
from django-analytical.
@bittner @likecodeingloveproblems
tldr: the issue might be with google_analytics_js.py
instead of google_analytics_gtag.py
Back when I was updating my GA tag from G3 (ie. UA-XXXXXX-Y) to the new G4 (G-XXXXXXXXXX) it was not being parsed as correct when assigned to GOOGLE_ANALYTICS_JS_PROPERTY_ID
in Django settings.py
See the PROPERTY_ID_RE within google_analytics_js.py
I hope this helps.
from django-analytical.
Has this issue been resolved? I will like to contribute to this if it is still open.
from django-analytical.
If I'm not mistaken this issue is still unsolved. Feel free to open a PR.
from django-analytical.
Alright. I'll work on this
from django-analytical.
Related Issues (20)
- Gitter Sidecar integration
- New release and follow-up tasks HOT 1
- Clickmap link in README links to spammy website HOT 2
- Default value for SECURE_REFERRER_POLICY in Django 3.1 breaks Clicky HOT 2
- how to set enhanced eCommerce in google analytics HOT 2
- how to set identity_func HOT 3
- Ability to push custom commands to Matomo
- Respecting Consent ( Possible fix for #141 ) HOT 6
- Ability to pass FACEBOOK_PIXEL_ID directly in template tag HOT 1
- GA not tracking logged in users, GTAG user_id seems to require a different syntax now HOT 4
- support for python 3.10 HOT 1
- Rename default branch (master ➜ main) HOT 1
- Support for Posthog HOT 1
- Allow to set a custom location for google analytics js - support for proxy HOT 2
- Matomo ReDoS vulnerability (regex denial of service)
- Latest docs must build from `main` (not `master`) HOT 3
- basic mixpanel tracking HOT 4
- Setting google_analytics_gtag_identity does not work HOT 3
- Usage in Docker HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-analytical.