Expand my Community achievements bar.

SOLVED

s_objectID

Avatar

Level 1

Some of the links that differ in query strings are being stripped out by default during data processing, hence I applied s_objectID to rotating banners on home.

The banners are populating dynamically. We want to track which banner is more effective, however the code is not working. Can you please help?

Here is the code:

onclick="s_objectID={link_url}"

I applied on a href

<a href="{link_url}" onclick="s_objectID={link_url}" {target}>{alt_text}</a>
 
1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Aha - linkLeaveQueryString will probably help here.

http://microsite.omniture.com/t2/help/en_US/sc/implement/linkLeaveQueryString.html

When you set that to true, query strings will no longer be stripped from image requests.

View solution in original post

3 Replies

Avatar

Employee Advisor

Implementation and code questions such as this are most effectively answered if there's a test page we can look at, and see the code running. Would it possible to see the code you're running in action?

Avatar

Level 1

Thank you Gigazelle so much for your reply.

The code is on http://www.toshiba.com/us/ homepage.

Its on rotating banner. If you right click and view source you will find s_objectID implemented. It works fine on hard coded links but its creating a issue on rotating banners, not sure why. I would appreciate your help.

I applied s_objectID on 3 other links other than rotating banners and it works fine.

Thank you once again.

Avatar

Correct answer by
Employee Advisor

Aha - linkLeaveQueryString will probably help here.

http://microsite.omniture.com/t2/help/en_US/sc/implement/linkLeaveQueryString.html

When you set that to true, query strings will no longer be stripped from image requests.