Skip to content

Change Analytics event element#65

Merged
Garneauma merged 3 commits into
ServiceCanada:mainfrom
bblaisATcoveo:sr-624
May 13, 2026
Merged

Change Analytics event element#65
Garneauma merged 3 commits into
ServiceCanada:mainfrom
bblaisATcoveo:sr-624

Conversation

@bblaisATcoveo

Copy link
Copy Markdown
Contributor

Use the baseElement (data-gc-search) to send analytics event instead of the breader document element.

PREREQUISITE
1- Make sure to have a page that now listens to the 'data-gc-search' element instead of the document element for analytics

TEST CASE 1
1- Make sure that searches, page change and clicks are still being tracked by both the Coveo headless framework and EAM

@GormFrank GormFrank added this to the v1.8.1 milestone Apr 16, 2026
@GormFrank GormFrank requested a review from ipaksc April 16, 2026 18:22
@Garneauma Garneauma marked this pull request as ready for review May 4, 2026 12:48
@Garneauma Garneauma requested a review from a team May 4, 2026 12:48
Yves-Denis
Yves-Denis previously approved these changes May 4, 2026

@Yves-Denis Yves-Denis left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Security Assessment Completed - Passed, no issues identified

Comment thread src/connector.js
ipaksc
ipaksc previously approved these changes May 6, 2026

@Garneauma Garneauma left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • Change the file name so that it does not include a space.
  • Add a new section in the homepage for tests and add the link to the page.
  • Change the folder name to "tests"

- change test folder for tests
- add analytics test page link
- rename analytics test page
@Garneauma Garneauma merged commit b0e3181 into ServiceCanada:main May 13, 2026
2 checks passed
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.

6 participants