Mixing SDK context data tracking in the mobile app and s_code javascript tracking for app web pages in the app report suite | Community
Skip to main content
Level 2
October 16, 2015
Solved

Mixing SDK context data tracking in the mobile app and s_code javascript tracking for app web pages in the app report suite

  • October 16, 2015
  • 4 replies
  • 2281 views

Hi guys,

My mobile app uses mix of native app pages and mobile webpages to display contents to the users. I'm using SiteCatalyst SDK with context data tracking to track the native app pages. But not sure how to track the mobile webpages that the app is using to display some contents. The app report suite is mobile app reporting enabled, so I'm not sure if I can use s_code javascript with conventional tracking (variables (i.e., s.eVar1) rather than the context data) in the mobile webpages to track these pages in the same app report suite. Is it possible? So far, I've sent some image requests with s_code javascript tracking from these mobile webpages to the same app report suite but can't see any data from these image requests. Any help will be much appreciated.

Regards,

Sid

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 Alexis_Cazes_

Sid,

 

The code looks good. If you use the packet monitor you should see a new parameter ts in the image request.

 

Best regards.

 

Alexis Cazes

4 replies

Alexis_Cazes_
Level 10
October 16, 2015

Sid,

 

Make sure that you have enabled timestamp on the report suite yes/no

If yes then you need to use s.timestamp with javascript implementation : http://microsite.omniture.com/t2/help/en_US/sc/implement/timestamp.html

Best regards.

 

Alexis Cazes

Level 2
October 16, 2015

Hi Alexis,

Thanks for sending me this link. The report suite is currently timestamp-enabled but not sure how to send this variable (s.timestamp) in s.tl tracking. Can you please check the below code if this is correct way of adding timestamp?:

 

var s=s_gi('testreport');

s.linkTrackVars='eVar1,timestamp,events'';

s.linkTrackEvents='event1'

s.eVar1='test';

s.events='event1';

s.timestamp='ISO format timestamp';

s.tl(this,'o','test');

 

Many thanks,

Sid

Alexis_Cazes_
Alexis_Cazes_Accepted solution
Level 10
October 16, 2015

Sid,

 

The code looks good. If you use the packet monitor you should see a new parameter ts in the image request.

 

Best regards.

 

Alexis Cazes

Level 2
October 16, 2015

Thanks Alexis! This worked!!