Get page name from url path using launch | Community
Skip to main content
floriane3493069
December 18, 2019
Solved

Get page name from url path using launch

  • December 18, 2019
  • 2 replies
  • 5696 views

Hi there,

 

I have a very simple Adobe Analytics implementatio using Adobe Launch. All I want is measuring page views of a certain page and using the url path as page name.

 

If landing page URL equals myexampletestpage.com set variable and send beacon.

Page Name comes from a data element using location.pathname to retrieve page name from url path.

 

Unfortunately it does not work. Do you have any ideas what is wrong with my set up?

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by franzli

Screenshots would help enormously. 

 

There are some tips to debugging this:

  1. When you are on the landing page and in console log and you type the data layer :


    Do you get a return with the page name?

 

_satellite.getVar("YOUR_DATA_ELEMENT_HERE");​

If yes, that's good. If not, then your data element is causing an issue.

 

2 replies

December 19, 2019

In the rule are you using the Condition Configuration with the "path without query string" option or are you using custom code?

floriane3493069
December 19, 2019
Hi @catherinekim I am using "landing page equals myexampletestpage.com" - Thanks
franzli
franzliAccepted solution
January 8, 2020

Screenshots would help enormously. 

 

There are some tips to debugging this:

  1. When you are on the landing page and in console log and you type the data layer :


    Do you get a return with the page name?

 

_satellite.getVar("YOUR_DATA_ELEMENT_HERE");​

If yes, that's good. If not, then your data element is causing an issue.