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

[FC-0014] Add GA 4 support to edX platform #32032

Merged
merged 4 commits into from
Apr 18, 2023

Conversation

UvgenGen
Copy link
Contributor

@UvgenGen UvgenGen commented Apr 5, 2023

Description

Added support for GA4 to edX platform:

  1. New settings have been added to configure the GA4 Google Analytics ID:

GOOGLE_ANALYTICS_4_ID = "G-TEST"

  1. GA4 snippets added to the following templates:
  • main.html
  • accomplishment-base.html (certificates)
  • main_django.html (wiki)

Supporting information

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Apr 5, 2023
@openedx-webhooks
Copy link

Thanks for the pull request, @UvgenGen! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@bmtcril
Copy link
Contributor

bmtcril commented Apr 6, 2023

Hi @UvgenGen , I'm not sure if you can see the linting errors but it looks like it boils down to:

Too many mako-invalid-js-filter violations (3).

Which increases the total count:

Too many violations total (66). The limit is 63.

I'm working on getting front end reviews on both of these PRs today if I can.

Copy link
Contributor

@arbrandes arbrandes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

gtag('config', '{{ ga_4_id }}');
</script>
{% endif %}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like some pages were missing GA3 entirely. Nice catch.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you) Should I add GA3 snippet too?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to do that for this work. Thanks for checking, though!

@UvgenGen
Copy link
Contributor Author

UvgenGen commented Apr 6, 2023

@bmtcril I pushed new commit with escaping ga_4_id, so now tests should pass)

@UvgenGen UvgenGen force-pushed the sagirov/tCRIL_GA-18 branch from 5c7e29c to 18b8044 Compare April 6, 2023 14:16
@UvgenGen
Copy link
Contributor Author

UvgenGen commented Apr 6, 2023

PR rebased

Copy link
Contributor

@bmtcril bmtcril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@bmtcril bmtcril merged commit b2b78f3 into openedx:master Apr 18, 2023
@openedx-webhooks
Copy link

@UvgenGen 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants