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

Enhance CTA tracking by identifying block names and their indices #304

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Mao8a
Copy link
Collaborator

@Mao8a Mao8a commented Dec 27, 2024

Jira Ticket

Feature: https://pethealthinc.atlassian.net/browse/PM-268

Purpose

cta_click event is missing the cta_location parameter in some cases

Changes

The dataLayer now includes the name and index of the container block in the cta_location parameter for the cta_click event

Validate Changes

image

  1. Go to: https://feature-pm-268-cta-location--24petwatch--hlxsites.hlx.page/
  2. Inspect any element or open the developer tools
  3. Go to the Network tab
  4. Check The Preserve the logs checkbox ✅
  5. Enable the Filters and filter by Fetch/XHR
  6. Clear the Network Log 🚫
  7. Now click on any cta on the page 🖱️
  8. Select the first collect? request
  9. Look up for the ep.cta_location under the Payload tab

Copy link

aem-code-sync bot commented Dec 27, 2024

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

Copy link

aem-code-sync bot commented Dec 27, 2024

Page Scores Audits Google
📱 / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

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.

1 participant