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

Leaner GA config #914

Merged
merged 7 commits into from
Mar 23, 2021
Merged

Leaner GA config #914

merged 7 commits into from
Mar 23, 2021

Conversation

adekbadek
Copy link
Member

All Submissions:

Changes proposed in this Pull Request:

Closes #911.

How to test the changes in this Pull Request:

  1. On master, concoct a big GA config by enabling NTG events, adding some custom events, and then making it so a ton of prompts is included on a page. You can also inflate the config size by setting a super long title on one of the prompts.
  2. Visit a page and observe amp-analytics: gtag vendor config rewriter payload size limitation ampproject/amphtml#32911 - if the GA config is larger than 10kB, the request to https://www.googletagmanager.com/gtag/amp should fail, triggering a Error rewriting configuration error. Observe the GA events triggered by prompts being loaded, seen, and dismissed, are not sent (query network requests with collect)
  3. Switch to this branch and also add/leaner-ga-config on newspack-popups
  4. Observe the issues from pt. 2 are gone (unless your config is still >10kB after the changes 😱)
  5. After ~24h the new data should be available to Campaigns Wizard's Analytics - verify the new data is there

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@adekbadek adekbadek added the [Status] Needs Review The issue or pull request needs to be reviewed label Mar 19, 2021
@adekbadek adekbadek requested review from jeffersonrabb and dkoo March 19, 2021 16:44
Copy link
Contributor

@dkoo dkoo left a comment

Choose a reason for hiding this comment

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

Confirmed that these changes and Automattic/newspack-popups#497 cut the payload size significantly (by more than half on my test site with 12 active prompts). I can respond again after I confirm I can see the analytics being reported in the dashboard.

@github-actions github-actions bot added [Status] Approved The pull request has been reviewed and is ready to merge and removed [Status] Needs Review The issue or pull request needs to be reviewed labels Mar 22, 2021
@adekbadek adekbadek merged commit 81cdff6 into master Mar 23, 2021
@adekbadek adekbadek deleted the add/leaner-ga-config branch March 23, 2021 08:46
matticbot pushed a commit that referenced this pull request Mar 23, 2021
# [1.34.0-alpha.1](v1.33.2...v1.34.0-alpha.1) (2021-03-23)

### Bug Fixes

* apply correct color to jetpack logo ([#910](#910)) ([686362c](686362c))
* redirect after setup complete ([#908](#908)) ([5624822](5624822))
* starter content issues ([#905](#905)) ([6cbc40d](6cbc40d)), closes [#899](#899) [#904](#904) [#903](#903)

### Features

* leaner GA config ([#914](#914)) ([81cdff6](81cdff6)), closes [#911](#911)
* remove woocommerce-one-page-checkout from supported plugins list  ([#913](#913)) ([7fa2e31](7fa2e31))
* update welcome wizard card footer ([#909](#909)) ([134a0e9](134a0e9))
* **setup:** design step ([#892](#892)) ([254f08b](254f08b))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 1.34.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Mar 24, 2021
# [1.34.0](v1.33.2...v1.34.0) (2021-03-24)

### Bug Fixes

* apply correct color to jetpack logo ([#910](#910)) ([686362c](686362c))
* redirect after setup complete ([#908](#908)) ([5624822](5624822))
* starter content issues ([#905](#905)) ([6cbc40d](6cbc40d)), closes [#899](#899) [#904](#904) [#903](#903)

### Features

* custom placements ([#898](#898)) ([2cadb45](2cadb45))
* leaner GA config ([#914](#914)) ([81cdff6](81cdff6)), closes [#911](#911)
* remove woocommerce-one-page-checkout from supported plugins list  ([#913](#913)) ([7fa2e31](7fa2e31))
* update welcome wizard card footer ([#909](#909)) ([134a0e9](134a0e9))
* **setup:** design step ([#892](#892)) ([254f08b](254f08b))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 1.34.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

adekbadek added a commit that referenced this pull request Apr 28, 2021
To avoid gtag vendor config rewriter payload size limitation
ampproject/amphtml#32911

Related to #914
adekbadek added a commit that referenced this pull request Apr 28, 2021
To avoid gtag vendor config rewriter payload size limitation
ampproject/amphtml#32911

Related to #914
@adekbadek adekbadek mentioned this pull request Apr 28, 2021
6 tasks
adekbadek added a commit that referenced this pull request Apr 29, 2021
To avoid gtag vendor config rewriter payload size limitation
ampproject/amphtml#32911

Related to #914
matticbot pushed a commit that referenced this pull request May 4, 2021
# [1.38.0-alpha.1](v1.37.0...v1.38.0-alpha.1) (2021-05-04)

### Bug Fixes

* use guest authors in Slack preview when needed ([#947](#947)) ([e42680e](e42680e))

### Features

* batch amp-analytics events ([481dc97](481dc97)), closes [#914](#914)
* integrate Newspack Scheduled Post Checker into main plugin ([#940](#940)) ([c6adc1b](c6adc1b))
matticbot pushed a commit that referenced this pull request May 4, 2021
# [1.38.0](v1.37.0...v1.38.0) (2021-05-04)

### Bug Fixes

* use guest authors in Slack preview when needed ([#947](#947)) ([e42680e](e42680e))

### Features

* batch amp-analytics events ([481dc97](481dc97)), closes [#914](#914)
* integrate Newspack Scheduled Post Checker into main plugin ([#940](#940)) ([c6adc1b](c6adc1b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released on @alpha released [Status] Approved The pull request has been reviewed and is ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leaner GA events configuration
3 participants