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

Update docs and code to remove GA3 references and match GA4 reality #14910

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

stephaniehobson
Copy link
Contributor

@stephaniehobson stephaniehobson commented Jul 30, 2024

One-line summary

Update analytics documentation to only reference GA4 and edit the code to make it match the GA4 docs.

Significant changes and points to review

  • Re-write analytics documentation intro
  • Remove: UA documentation
  • Remove: UA dataLayer pushes
  • Remove: data-link-group (migrate into data-link-position where appropriate)
  • Remove: data-cta-type="button"
  • Remove: data-cta-type="link"
  • data-cta-* and data-link-* should not be used on the same attribute

Issue / Bugzilla link

#13951
#14053
#14054

Testing

I know there's a lot of changes but most of them are simple edits. Hopefully this isn't too onerous!

@@ -19,7 +19,7 @@
class_name='mzp-t-product mzp-t-secondary mzp-t-md',
optional_attributes= {
'data-cta-text' : 'Get Mozilla VPN',
'data-cta-type' : 'button',
'data-cta-type' : 'vpn',
Copy link
Contributor Author

@stephaniehobson stephaniehobson Jul 30, 2024

Choose a reason for hiding this comment

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

This links to a page on WMO and so should not have the fxa- prefix other cta-types have (true for all occurrences of vpn_product_referral_link)

@stephaniehobson stephaniehobson force-pushed the ua-docs branch 3 times, most recently from 2f33c6a to 0149529 Compare August 1, 2024 20:54
@stephaniehobson stephaniehobson marked this pull request as ready for review August 2, 2024 18:35
@stephaniehobson stephaniehobson added Needs Review Awaiting code review Review: S Code review time: 30 mins to 1 hour labels Aug 2, 2024
@stephaniehobson stephaniehobson marked this pull request as draft August 2, 2024 19:36
@stephaniehobson stephaniehobson removed the Needs Review Awaiting code review label Aug 2, 2024
@stephaniehobson
Copy link
Contributor Author

Note to self: add docs about stub attribution needing data-download-version

@stephaniehobson stephaniehobson force-pushed the ua-docs branch 2 times, most recently from 437863c to 9ef2ff3 Compare August 22, 2024 17:28
@stephaniehobson stephaniehobson changed the title Update analytics documentation, and reflect docs in code Update docs and code to remove GA3 references and match GA4 reality Aug 22, 2024
@stephaniehobson stephaniehobson added the Frontend HTML, CSS, JS... client side stuff label Aug 30, 2024
@stephaniehobson stephaniehobson force-pushed the ua-docs branch 6 times, most recently from 4562671 to 34d1a09 Compare September 4, 2024 19:11
@stephaniehobson stephaniehobson marked this pull request as ready for review September 4, 2024 19:14
@stephaniehobson stephaniehobson added the Needs Review Awaiting code review label Sep 4, 2024
Copy link

codecov bot commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.42%. Comparing base (108971e) to head (8e5ccd4).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14910   +/-   ##
=======================================
  Coverage   78.42%   78.42%           
=======================================
  Files         162      162           
  Lines        8344     8344           
=======================================
  Hits         6544     6544           
  Misses       1800     1800           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stephaniehobson
Copy link
Contributor Author

Rebased!

@stephaniehobson stephaniehobson force-pushed the ua-docs branch 5 times, most recently from beffdaf to 6b002f5 Compare September 19, 2024 17:44
@stephaniehobson
Copy link
Contributor Author

Rebased again!

@reemhamz reemhamz self-assigned this Sep 20, 2024
Copy link
Contributor

@reemhamz reemhamz left a comment

Choose a reason for hiding this comment

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

Whewwwww, this was a big one.

💡 Note that this needs another rebase

Good job working so diligently on this! I left some important questions and suggestions, however I'm also still finding instances of data-cta-type="b utton", data-cta-type="link", and data-link-group in the code in the code that should be addressed:

Screenshot 2024-09-24 at 1 29 58 PM

Screenshot 2024-09-24 at 1 29 34 PM

Screenshot 2024-09-24 at 1 28 40 PM

docs/attribution/0001-analytics.rst Outdated Show resolved Hide resolved
docs/attribution/0001-analytics.rst Outdated Show resolved Hide resolved
docs/attribution/0001-analytics.rst Outdated Show resolved Hide resolved
docs/attribution/0001-analytics.rst Show resolved Hide resolved
docs/attribution/0001-analytics.rst Show resolved Hide resolved
docs/attribution/0002-firefox-desktop.rst Outdated Show resolved Hide resolved
@reemhamz reemhamz removed the Needs Review Awaiting code review label Sep 24, 2024
Update analytics documentation to remove UA and edit the code to make it match the GA4 docs.

-    Re-write analytics documentation intro
-    Remove: UA documentation
-    Remove: UA dataLayer pushes
-    Remove: data-link-group (migrate into data-link-position where appropriate)
-    Remove: data-cta-type="button"
-    Remove: data-cta-type="link"
-    data-cta and data-link should not be used on the same attribute
@stephaniehobson stephaniehobson force-pushed the ua-docs branch 2 times, most recently from 87ac590 to c2a48e4 Compare October 7, 2024 18:28
@stephaniehobson
Copy link
Contributor Author

Ready for re-review!

Copy link
Contributor

@reemhamz reemhamz left a comment

Choose a reason for hiding this comment

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

Looking good!
Good job again on such a big clean-up 🧹 r+

@reemhamz reemhamz merged commit 5b3079f into main Oct 8, 2024
5 checks passed
@reemhamz reemhamz deleted the ua-docs branch October 8, 2024 03:53
@alexgibson
Copy link
Member

It looks like something went a bit wrong in the rebase of this PR, and several templates that were removed from the code base got added back in again as new files:

Will file a new issue to remove them again

reemhamz pushed a commit that referenced this pull request Oct 10, 2024
…14910)

* Update analytics documentation, and reflect docs in code

Update analytics documentation to remove UA and edit the code to make it match the GA4 docs.

-    Re-write analytics documentation intro
-    Remove: UA documentation
-    Remove: UA dataLayer pushes
-    Remove: data-link-group (migrate into data-link-position where appropriate)
-    Remove: data-cta-type="button"
-    Remove: data-cta-type="link"
-    data-cta and data-link should not be used on the same attribute

* review fixes
craigcook pushed a commit that referenced this pull request Oct 14, 2024
…14910)

* Update analytics documentation, and reflect docs in code

Update analytics documentation to remove UA and edit the code to make it match the GA4 docs.

-    Re-write analytics documentation intro
-    Remove: UA documentation
-    Remove: UA dataLayer pushes
-    Remove: data-link-group (migrate into data-link-position where appropriate)
-    Remove: data-cta-type="button"
-    Remove: data-cta-type="link"
-    data-cta and data-link should not be used on the same attribute

* review fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Analytics 📈 Frontend HTML, CSS, JS... client side stuff Review: S Code review time: 30 mins to 1 hour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants