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

CTA Link Clicked #6

Open
ajramosSDI opened this issue May 25, 2023 · 9 comments
Open

CTA Link Clicked #6

ajramosSDI opened this issue May 25, 2023 · 9 comments

Comments

@ajramosSDI
Copy link
Collaborator

This event should fire on all clicks such as Navigation Clicks, Title Clicks, Language Selection, Initial Contact Click, and Outbound Clicks

CTA Link Clicked

@mgarzonjnj
Copy link
Collaborator

mgarzonjnj commented Jun 19, 2023

Image

To check the outbound parameter above (the link clicked is internal to AskGS community or some external application link), I’m checking if the URL of application link is having “jnjgsportal” OR “jnjgs” words in it along with url parameter “/s/?language=” which are always present in our community site urls (sandbox and production).
If not, then that means it’s a external site URL in application links. Formula described below:
((event.target.dataset.fileUrl.includes('jnjgsportal') || event.target.dataset.fileUrl.includes('jnjgs')) && event.target.dataset.fileUrl.includes('/s/?language=') ? false : true)

@mgarzonjnj
Copy link
Collaborator

Image

@mgarzonjnj
Copy link
Collaborator

mgarzonjnj commented Aug 4, 2023

Image

Image

Image

@mgarzonjnj
Copy link
Collaborator

@mandyjohnston03 @davisbradleyj @ACasallaJnJ

During the show and tell of Part 2 of CTA, the team raised the fact that some links refresh the browser tab that refreshed the data layer/can't capture data in console. Can you advise how we'll capture this data in production? For testing, they are forcing the clicks to open in a new tab so the data layer doesn't refresh, but that won't be the case in PROD.

@mandyjohnston03
Copy link
Collaborator

@mgarzonjnj There is an exension called GTM Sonar that you can use to get around these. We will use that to test!

@mandyjohnston03
Copy link
Collaborator

We will need next week to finish testing these, but just a few initial things I'm seeing I wanted to pass along:

The 'Create a request for our associates' and 'Browse phone numbers by region' are setting the outbound parameter to true, even though it points to the same domain. This should be false.

Image

@davisbradleyj
Copy link
Contributor

davisbradleyj commented Aug 18, 2023

@mgarzonjnj @ACasallaJnJ Validation results are being logged in this google worksheet

@mandyjohnston03
Copy link
Collaborator

mandyjohnston03 commented Aug 23, 2023

Passed in pre-dev

Image

@davisbradleyj
Copy link
Contributor

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

No branches or pull requests

4 participants