Is the "pageName" variable case-sensitive? | Community
Skip to main content
October 13, 2022
Solved

Is the "pageName" variable case-sensitive?

  • October 13, 2022
  • 2 replies
  • 834 views

Hello!

 

For iOS tracking, is the "pageName" variable considered case-sensitive? If it is input as "pagename" what would be the result?

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 Jennifer_Dungan

That is a good question...  I've not actually tried that.... and it's been a while since I had an implementation that required me to set these manually.

 

I suspect that IF you were to pass a Page Name that Adobe doesn't recognize, it will likely use the fallback of setting the page name value to the current URL (this is what happens when no page name is sent)

 

Out of curiosity, what implementation are you using? With Adobe Launch, it should be setting the object for you, so you shouldn't need to worry about the case-sensitivity as much....

 

If there is a non-standard implementation you are working on, maybe I can help?

2 replies

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 13, 2022

Do you mean when setting the variables?

 

s.pageName = "value";

vs

s.pagename = "value";

 

Javascript is case sensitive. You need to use the object with the capital N (this holds true for iOS, Android, Web, etc)

 

October 13, 2022

Thanks for your response! 

What would the happen for calls made passing in "pagename"?

Jennifer_Dungan
Community Advisor and Adobe Champion
Jennifer_DunganCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
October 13, 2022

That is a good question...  I've not actually tried that.... and it's been a while since I had an implementation that required me to set these manually.

 

I suspect that IF you were to pass a Page Name that Adobe doesn't recognize, it will likely use the fallback of setting the page name value to the current URL (this is what happens when no page name is sent)

 

Out of curiosity, what implementation are you using? With Adobe Launch, it should be setting the object for you, so you shouldn't need to worry about the case-sensitivity as much....

 

If there is a non-standard implementation you are working on, maybe I can help?

yuhuisg
Community Advisor
Community Advisor
October 14, 2022

You mentioned iOS tracking. Is this for a mobile app or mobile/responsive website?