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

Ads conversion ID not output when connected via PAX #8732

Closed
1 task
aaemnnosttv opened this issue May 20, 2024 · 2 comments
Closed
1 task

Ads conversion ID not output when connected via PAX #8732

aaemnnosttv opened this issue May 20, 2024 · 2 comments
Labels
Module: Ads Google Ads module related issues P0 High priority Type: Bug Something isn't working

Comments

@aaemnnosttv
Copy link
Collaborator

aaemnnosttv commented May 20, 2024

Bug Description

In #8580 we modified the tagging logic to support the new paxConversionID if present. However, a regression was introduced due to a flaw in the QA instructions.

Steps to reproduce

  1. Setup Ads via PAX
  2. Check site front end for gtag
  3. Note that AW- tag will not be present in HTML markup

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • Upon successful connection of the Ads module via PAX, the conversion tracking ID shown in the module settings should be present in the gtag config on the page

Implementation Brief

  • Update Modules\Ads\Tag_Guard to accept the Tag's tag_id as a parameter instead of module settings, then validate that the given ID appears valid rather than checking the same fields in the settings since the tag ID is already selected at this point. This guard is primarily intended to implement logic based on other settings (e.g. useSnippet) which don't exist for Ads yet. We can potentially rename the guard class here as well if we want to keep things consistent with other modules and Tag_Guard specific to module settings.

Test Coverage

  • Update coverage for the change to the guard

QA Brief

  • Setup Ads via PAX:
    • Check the site's front end for gtag
    • Validate that the AW- aspect of the above tag (i.e the tag ID) matches the PAX Conversion ID value in Ads settings

Changelog entry

  • Ensure conversion ID is output when Ads module is connected by PAX.
@aaemnnosttv aaemnnosttv added Type: Bug Something isn't working P0 High priority Module: Ads Google Ads module related issues labels May 20, 2024
@tofumatt tofumatt self-assigned this May 20, 2024
@tofumatt
Copy link
Collaborator

IB ✅

@tofumatt tofumatt removed their assignment May 20, 2024
@10upsimon 10upsimon self-assigned this May 20, 2024
@10upsimon 10upsimon removed their assignment May 20, 2024
@tofumatt tofumatt assigned tofumatt and unassigned tofumatt May 20, 2024
@wpdarren wpdarren self-assigned this May 20, 2024
@wpdarren
Copy link
Collaborator

QA Update: ✅

Verified:

  • The AW- aspect of the tag matches the PAX Conversion ID value in Ads settings.
    • Tested with Ads module / PAX only.
    • Tested with Ads module / PAX and Analytics
    • Tested with Ads module / PAX and Analytics and AMP activated.
Screenshots

image
image
image
image

@wpdarren wpdarren removed their assignment May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: Ads Google Ads module related issues P0 High priority Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants