Skip to content

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

Merged
bmtcril merged 4 commits into
openedx:masterfrom
raccoongang:sagirov/tCRIL_GA-18
Apr 18, 2023
Merged

[FC-0014] Add GA 4 support to edX platform#32032
bmtcril merged 4 commits into
openedx:masterfrom
raccoongang:sagirov/tCRIL_GA-18

Conversation

@UvgenGen

@UvgenGen UvgenGen commented Apr 5, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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

bmtcril commented Apr 6, 2023

Copy link
Copy Markdown
Contributor

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.

@arbrandes arbrandes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me!

Comment thread lms/templates/main_django.html Outdated

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

UvgenGen commented Apr 6, 2023

Copy link
Copy Markdown
Contributor Author

@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

UvgenGen commented Apr 6, 2023

Copy link
Copy Markdown
Contributor Author

PR rebased

@bmtcril bmtcril left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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