Expand my Community achievements bar.

SOLVED

Is the "pageName" variable case-sensitive?

Avatar

Level 1

Hello!

 

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor and Adobe Champion

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?

View solution in original post

4 Replies

Avatar

Community Advisor and Adobe Champion

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)

 

Avatar

Level 1

Thanks for your response! 

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

Avatar

Correct answer by
Community Advisor and Adobe Champion

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?

Avatar

Community Advisor

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