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

Remove Google Universal Analytics #2351

Open
igobranco opened this issue Apr 2, 2024 · 0 comments
Open

Remove Google Universal Analytics #2351

igobranco opened this issue Apr 2, 2024 · 0 comments
Assignees
Labels
easy pick Simple tasks that are ideal for new contributors to get started.

Comments

@igobranco
Copy link
Collaborator

Feature Request

Is your feature request related to a problem or unsupported use case? Please describe.
The Google Universal Analytics is end of life, for the free subscriptions is no longer supported, and for the subscription plan 360, will be removed during this year.
https://support.google.com/analytics/answer/11583528?hl=en#360

Describe the solution you'd like
Remove the Google Universal Analytics code from web_analytics.html and the frontend.

Remove:

  • {% if provider == "google_universal_analytics" %}
    {% block google_universal_analytics %}
    <script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
    ga('create', '{{ provider_configuration.tracking_id | safe }}', 'auto');
    {% for dimension_key, dimension_value_list in WEB_ANALYTICS_DIMENSIONS.items %}
    ga('set', {'dimension{{forloop.counter}}': '{{ dimension_value_list|join:" | " }}'});
    {% endfor %}
    ga('send', 'pageview');
    </script>
    {% endblock google_universal_analytics %}
  • * Google Analytics Richie Web Analytics API Implementation

Describe alternatives you've considered
None.

Discovery, Documentation, Adoption, Migration Strategy
Update the web analytics docs.

Do you want to work on it through a Pull Request?
Yes.

@igobranco igobranco added the easy pick Simple tasks that are ideal for new contributors to get started. label Apr 2, 2024
@igobranco igobranco self-assigned this Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy pick Simple tasks that are ideal for new contributors to get started.
Projects
None yet
Development

No branches or pull requests

1 participant