Giter Club home page Giter Club logo

Comments (9)

bittner avatar bittner commented on June 12, 2024 2

@likecodeingloveproblems It's good to hear that! Contributors are the best people around!

It's actually simple, as for the code change:

  1. You'd have to adjust the regular expression in templatetags/google_analytics_gtag.py, so that it allows the patterns @carlosnasillo listed above.
  2. 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.

Go forward, step by step! Come back here to ask for help if needed! 🚀 👍 💯

from django-analytical.

likecodingloveproblems avatar likecodingloveproblems commented on June 12, 2024 2

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.

bittner avatar bittner commented on June 12, 2024

Thanks, Carlos, for reporting this problem.

Can you suggest a specific change? Do you want to try a PR?

from django-analytical.

likecodingloveproblems avatar likecodingloveproblems commented on June 12, 2024

Hi, I hope to solve this problem.
but i am new to git contribution.
can you help me to solve it?

from django-analytical.

bittner avatar bittner commented on June 12, 2024

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

carlosnasillo avatar carlosnasillo commented on June 12, 2024

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

theSekyi avatar theSekyi commented on June 12, 2024

Has this issue been resolved? I will like to contribute to this if it is still open.

from django-analytical.

bittner avatar bittner commented on June 12, 2024

If I'm not mistaken this issue is still unsolved. Feel free to open a PR.

from django-analytical.

theSekyi avatar theSekyi commented on June 12, 2024

Alright. I'll work on this

from django-analytical.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.