Is the "pageName" variable case-sensitive? | Community
Skip to main content
New Participant
Oct 13, 2022 5:14 PM UTC
Solved

Is the "pageName" variable case-sensitive?

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.
Jennifer_Dungan
Jennifer_DunganAccepted solution
Level 2
Oct 13, 2022 6:14 PM UTC

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?

4 replies

yuhuisg
New Participant
Oct 14, 2022 2:01 AM UTC

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

Translate
Jennifer_Dungan
Level 2
Oct 13, 2022 5:55 PM UTC

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)

 

Translate
New Participant
Oct 13, 2022 5:58 PM UTC

Thanks for your response! 

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

Translate
Jennifer_Dungan
Jennifer_DunganAccepted solution
Level 2
Oct 13, 2022 6:14 PM UTC

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?

Translate