Where is s.pageName actually set | Community
Skip to main content
Level 2
April 26, 2016
Solved

Where is s.pageName actually set

  • April 26, 2016
  • 7 replies
  • 4602 views

We're having an issue with s.pageName coming in mixed case. We really want to lowercase it. I've scoured everything I can think of to no avail. Where is this set so that I can make sure it's set to lowercase off the bat?

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 jantzen_b

You could use the toLowerCase() JavaScript method in your implementation

https://www.w3schools.com/jsref/jsref_tolowercase.asp

 

7 replies

Liam_Dilley
April 26, 2016

Hi there,

You need to explain a bit more then this. Is this a default BC template or a purchased one you are referring too? By default, there is no such thing as that you see in BC.

You asking where it is in the HTML, or the CSS, Javascript?

revdovieAuthor
Level 2
April 27, 2016

The Adobe product we're using actually calls itself SiteCatalyst/Omniture. I think that's a version of BC, I'm not sure.

I realize now that I left out some details. We're having pageName use the default of the page URL. I know it's considered a bad practice, and I don't totally disagree, but that decision is above my pay grade and predates me, so I'm working with what I have.

Everything is getting filtered through Tealium and everything gets lowercased in Tealium but since pageName is getting pulled from the actual URL, that wasn't something that got lowercased in Tealium, and thus I'm getting mixed case results in my Pages reports.

I've seen a handful of places online that say to avoid this issue to simply lowercase s.pageName. I'd love to. I just can't figure out where the code is that actually SETS s.pageName. I know how to read/write code. I don't know where the file lives. I've looked in the SiteCatalyst template in Tealium and, while it references s.pageName, it doesn't tell me where it ever set it. I assume there's a JS file somewhere that I don't know about and once I find it, I can easily tack on a .toLowerCase(), but I need to find it first.

Thanks!

Liam_Dilley
April 27, 2016

That is the Analytical product from Adobe and is not related to business Catalyst. So this will be the wrong forum for that.

revdovieAuthor
Level 2
April 28, 2016

I tried finding the other forum. Could you point me in the right direction for that, please?

Liam_Dilley
April 28, 2016

Moved to Adobe Analytics, not sure if this is the right place but hopefully someone here can help.

revdovieAuthor
Level 2
April 28, 2016

Thanks for your help!

jantzen_b
Adobe Employee
jantzen_bAdobe EmployeeAccepted solution
Adobe Employee
December 23, 2020

You could use the toLowerCase() JavaScript method in your implementation

https://www.w3schools.com/jsref/jsref_tolowercase.asp