NCIOCPL / drug-dictionary-app

NCI Drug Dictionary Application
2 stars 0 forks source link

Three page load events occuring on CDR-ID URL Redirects #154

Open adriancofie opened 1 month ago

adriancofie commented 1 month ago

Issue description

When the app redirects the URL from the CDR-ID version to the drug name, it's generating three identical analytics page load events. (Note: The page name attribute for all three is the drug name version. )

Example URL: https://www.cancer.gov/publications/dictionaries/cancer-drug/def/750633

ESTIMATE TBD

Steps to reproduce the issue

  1. Enable the Adobe Analytics browser extension
  2. Load a page using the CDR-ID: https://www.cancer.gov/publications/dictionaries/cancer-drug/def/750633
  3. View the console

or

  1. View the react app build --https://react-app-dev.cancer.gov/drug-dictionary-app/master/def/750633
  2. View the console

What's the expected result?

What's the actual result?

Additional details / screenshot

Screenshot 2024-05-24 at 12 26 31 AM
welshja commented 1 month ago

@sarinapadilla - have we checked for a similar behavior on the DoCT and Genetics dictionaries? (Know they are separate applications, but think they share an underlying foundation.) I'm happy to take a peek as well if you could help provide some test URLs.

What I'm seeing when I look at the Console is that the Launch Rule named [AA]DC:EDDL:DrugDictionaryApp:Load:Definition is firing off three separate times as the application loads. This rule is triggered by the analytics data layer (EDDL) getting hit with a direct call with this name "EDDL:DrugDictionaryApp:Load:Definition" three times as the application loads after a redirect.

Confirmed that this is not happening when you hit a "pretty" URL or navigate to a definition through the application.

sarinapadilla commented 1 month ago

Here are some glossary URLs with the CDR-ID:

welshja commented 1 month ago

Confirmed - only an issue on Drug Dictionary.