Skip to content

Conversation

@KokaKiwi
Copy link
Member

Checklist

  • I have read the Contributor Guide
  • I have read and agree to the Code of Conduct
  • I have added a description of my changes and why I'd like them included in the section below

Description of Changes

Reconstruct the full URL by including the "search params" (or query string) into the base URL

Related Issues

  • Fix EDGEE-874

Reconstruct full URL by combining url and search fields to ensure
GA4 receives complete URLs with query parameters (UTMs, GCLID, etc.).

Fixes EDGEE-874
Copilot AI review requested due to automatic review settings November 14, 2025 16:06
@coveralls
Copy link

coveralls commented Nov 14, 2025

Pull Request Test Coverage Report for Build 19767059775

Details

  • 10 of 11 (90.91%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.2%) to 98.753%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/lib.rs 6 7 85.71%
Files with Coverage Reduction New Missed Lines %
src/lib.rs 1 98.2%
Totals Coverage Status
Change from base Build 18674279882: -0.2%
Covered Lines: 950
Relevant Lines: 962

💛 - Coveralls

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug where query parameters (search params) were not being included in the GA4 document location field. The fix concatenates the base URL with the search string to form the complete URL with query parameters.

Key Changes:

  • Modified URL construction in both page() and GaPayload::new() to include query parameters
  • Version bumped from 1.2.1 to 1.2.2 across all configuration files

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/lib.rs Updated page() function to concatenate data.url and data.search for the document location
src/ga_payload.rs Updated GaPayload::new() to concatenate page URL and search string from event context
Cargo.toml Version bump to 1.2.2
Cargo.lock Version bump to 1.2.2
edgee-component.toml Version bump to 1.2.2

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@KokaKiwi KokaKiwi requested a review from SachaMorard November 14, 2025 16:14
@SachaMorard
Copy link
Member

@KokaKiwi @CLEMENTINATOR I'm really not sure about this PR.
Do not merge it until I check the bug please

@KokaKiwi KokaKiwi marked this pull request as draft November 17, 2025 09:07
@SachaMorard SachaMorard marked this pull request as ready for review November 28, 2025 14:46
@SachaMorard SachaMorard merged commit 84119b6 into main Nov 28, 2025
9 checks passed
@SachaMorard SachaMorard deleted the fix/edgee-874-update-ga4-implementation-to-include-full-url-with branch November 28, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants