Expand my Community achievements bar.

Join us January 15th for an AMA with Champion Achaia Walton, who will be talking about her article on Event-Based Reporting and Measuring Content Groups!
SOLVED

Send s.pageName using s.tl()?

Avatar

Level 1
Level 1

Hi.

We are sending a custom link and some other variables using s.tl().  This is working well, except that one of the variables we are trying to send is s.pageName.

The s.pageName value shows up in the Adobe Experience Cloud debugger, but it looks like it is not being captured in the report suite.

The documentation says works that s.tl() works similarly to the s.t() method, but that it does not increment page views.

If we are sending s.pageName, do we have to use s.t()?

If so, can we send a custom link with s.t()?  The documentation does not show that as an option.

Thanks for any help you can provide.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@s18Pageview is captured in s.t() and link tracking is done with s.tl()

View solution in original post

8 Replies

Avatar

Correct answer by
Employee Advisor

@s18Pageview is captured in s.t() and link tracking is done with s.tl()

Avatar

Level 1
Level 1

Hi Shelly, thanks for your response. So, if we want to capture both s.pageName and a custom link, is it correct that we need to call both s.t() and s.tl()?

 

Do you know why when we call just s.tl(), s.pageName shows up in the debugger, but does not get captured in the report suite?

Avatar

Community Advisor

just an idea what we do:

1. Capture the load of the page using "s.t()" and in there we have the s.pageName as well as a cusom eVar (set to "most recent")

2. Capture the link klick only with some information about the click (eg. description, href-target, specific events if needed) - no s.pageName!

In reporting we can create a table for the "clicks" (2) and break down by our custom eVar (set in 1). this way we can see on which pages the click has happened.

 

Additional remarks:

a) there is no need to set the "custom eVar" on the second call (click), since analytics will remember the value thanks to "most recent". The only case where this is not working is user having multiple tabs open and switching between the tabs...

b) never ever set "pageName" on s.tl() calls in the processing rules (I think there is already a post in the community somewhere). If you set "pageName" in processing then it will turn the "s.tl()" to an "s.t()" call and mess up your data

Avatar

Level 2

You can also store the s.pageName value in a custom eVar or prop and list the variable in s.linkTrackVar in your s.tl() call and get the data you want without incrementing pageviews like you would with an s.t() call and avoid the extraneous server call as well.

Avatar

Community Advisor

This is a classic Adobe Analytics "gotcha". s.pageName has no meaning when used with s.tl(). As mentioned in other answers, you need to set s.pageName in an eVar (preferably with "Most Recent" allocation and "Hit" expiration).

 

Avatar

Level 4
Create an eVar and pass it on your custom link call. One thing I realized then is that page has a 100-character limit and eVar has 255 (not sure if that is still accurate). What I did then is implemented a character limit to the eVar via JS so that pageName and eVar will always be a match....

Avatar

Level 10
Do any of the answers below answer your initial question? If so, can you select one of them as the correct answer? If none of the answers already provided answer your question, can you provide additional information to better help the community solve your question?