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

feat(woocommerce): add UTM parameters as order meta #2665

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

miguelpeixe
Copy link
Member

@miguelpeixe miguelpeixe commented Sep 26, 2023

All Submissions:

Changes proposed in this Pull Request:

Adds UTM parameters as order meta and render in the order details:

image

How to test the changes in this Pull Request:

  1. Check out this branch and fix(modal-checkout): support utm params newspack-blocks#1540
  2. Visit a page that contains a Donate block with these parameters: ?utm_source=new+subscribers&utm_medium=email&utm_campaign=black+friday+sale&utm_content=first+cta+button&utm_term=test
  3. Make a donation and visit the order details at WooCommerce -> Orders
  4. Confirm the UTM parameters are displayed like in the image above
  5. Repeat the steps above but with a page that has a Checkout Button block

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?

@miguelpeixe miguelpeixe added the [Status] Needs Review The issue or pull request needs to be reviewed label Sep 26, 2023
@miguelpeixe miguelpeixe requested a review from a team as a code owner September 26, 2023 17:09
@miguelpeixe miguelpeixe self-assigned this Sep 26, 2023
@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 Sep 28, 2023
@miguelpeixe miguelpeixe merged commit 39dfc31 into master Sep 28, 2023
2 checks passed
@miguelpeixe miguelpeixe deleted the feat/wc-order-utm branch September 28, 2023 13:42
matticbot pushed a commit that referenced this pull request Sep 28, 2023
# [2.8.0-alpha.1](v2.7.1...v2.8.0-alpha.1) (2023-09-28)

### Bug Fixes

* **woocommerce:** hook for rendering UTM inputs ([#2671](#2671)) ([634f7bf](634f7bf))

### Features

* add RAS CLI commands ([#2666](#2666)) ([5afc049](5afc049))
* remove unused GA code ([#2664](#2664)) ([1fa99fa](1fa99fa))
* search credit metadata on media library ([#2594](#2594)) ([c33c5b2](c33c5b2))
* **woocommerce:** store UTM parameters as order meta ([#2665](#2665)) ([39dfc31](39dfc31))
@matticbot
Copy link
Contributor

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

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Oct 9, 2023
# [2.8.0](v2.7.5...v2.8.0) (2023-10-09)

### Bug Fixes

* inline documentation for `Donations::get_donation_settings()` ([#2675](#2675)) ([c6c7916](c6c7916))
* **woocommerce:** check method exists before syncing reader ([#2673](#2673)) ([063509c](063509c))
* **woocommerce:** hook for rendering UTM inputs ([#2671](#2671)) ([634f7bf](634f7bf))

### Features

* add RAS CLI commands ([#2666](#2666)) ([5afc049](5afc049))
* **campaigns:** newsletter subscription list criteria ([#2658](#2658)) ([69c8f88](69c8f88))
* remove unused GA code ([#2664](#2664)) ([1fa99fa](1fa99fa))
* search credit metadata on media library ([#2594](#2594)) ([c33c5b2](c33c5b2))
* **woocommerce:** store UTM parameters as order meta ([#2665](#2665)) ([39dfc31](39dfc31))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

3 participants