Expand my Community achievements bar.

s.pageName duplicated to eVar on link tracking call

Avatar

Level 2

Hi everyone!

We set s.pageName and then duplicate this to our page name eVar using D=pageName.

I've noticed on some pages, there's an s.tl() call before the s.t() call.

s.tl() calls string strip the page name value, so does this mean it will also strip the value from the eVar as there will be nothing to duplicate?

Many thanks!

2 Replies

Avatar

Community Advisor

It really depends on your implementation.... generally "s.pageName" is set, and is send on both the s.t() and s.tl() calls. Which means your D=pageName should still work, cause the pageName value is removed after this... however, if you aren't setting the pageName value at all, then the URL will be passed as the s.pageName (meaning your duplication will get the URL instead of the pageName value).

The s.tl() calls strip the pageName value later during the processing... so as long as the pageName is being passed (and you can check this using the Cloud Debugger, or Omnibug, or Charles, or Fiddler, or just in your browser's console in the network tab, etc), then your D=pageName should work and result in having the correct value.