Where is s.pageName actually set | Community
Skip to main content
Level 2
Apr 26, 2016 4:39 PM UTC
Solved

Where is s.pageName actually set

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.
jantzen_b
jantzen_bAccepted solution
Employee
Dec 23, 2020 9:15 PM UTC

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

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

 

7 replies

jantzen_b
jantzen_bAccepted solution
Employee
Dec 23, 2020 9:15 PM UTC

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

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

 

Translate
revdovieAuthor
Level 2
Apr 28, 2016 4:03 PM UTC

Thanks for your help!

Translate
Liam_Dilley
New Participant
Apr 28, 2016 1:41 AM UTC

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

Translate
revdovieAuthor
Level 2
Apr 28, 2016 12:45 AM UTC

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

Translate
Liam_Dilley
New Participant
Apr 27, 2016 10:33 PM UTC

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

Translate
revdovieAuthor
Level 2
Apr 27, 2016 1:36 PM UTC

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!

Translate
Liam_Dilley
New Participant
Apr 26, 2016 10:23 PM UTC

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?

Translate