Expand my Community achievements bar.

Join us for our next community Coffee Break on February 28th! Four of our Analytics Champions will be joining us to discuss Summit tips, best practices, and any of your Analytics questions!
SOLVED

transition to appmeasurement from s-code h27

Avatar

Level 3

We are planning to move to appmeasuremnt from s_code 27. As per the reference

  1. Took the AppMeasurement code from admin and added it in the current s_code from the below line

 

============== DO NOT ALTER ANYTHING BELOW THIS LINE ! ===============

  1. Added this s=new AppMeasurement();
  2. Changed  s.getQueryParam to s.Util.getQueryParam
  3. Added updated integrate module which is compatible with AppMeasurement
  4. Attched the s_code file that I have updated in .txt format.

But the code is not working and it is not even giving any error.

 

Can you please check the file and let me know what is the issue?

 

Regards,

Vidya

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Vidya,

I hope you had added your RSID under var s_account. Also ensure that your code is in the body tag. 

You have to pass the tracking server details under s.trackingserver. To know your tracking server domain check out this article https://marketing.adobe.com/resources/help/kb/en_US/analytics/kb/determining-data-center.html

I dont see a s.t() call at the end of the so you could add this line which fires the image request - var s_code=s.t();if(s_code)document.write(s_code);

Do go through this sample page code in case - https://marketing.adobe.com/resources/help/en_US/sc/implement/appmeasure_mjs_pagecode.html

Do let me know in case you have any questions.Thanks!

TM

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

Hi Vidya,

I hope you had added your RSID under var s_account. Also ensure that your code is in the body tag. 

You have to pass the tracking server details under s.trackingserver. To know your tracking server domain check out this article https://marketing.adobe.com/resources/help/kb/en_US/analytics/kb/determining-data-center.html

I dont see a s.t() call at the end of the so you could add this line which fires the image request - var s_code=s.t();if(s_code)document.write(s_code);

Do go through this sample page code in case - https://marketing.adobe.com/resources/help/en_US/sc/implement/appmeasure_mjs_pagecode.html

Do let me know in case you have any questions.Thanks!

TM

Avatar

Level 3

Hi Tanmay,

We have different suites for different sites and one single s_code.js file. The suite is defined in omniture.js file.  In that case i hope that we need not have to add anything in the s_code.js. Please let me know.

Thanks,

Vidya

Avatar

Level 3

Hi Tanmay, 

I had missed the s.t() call in the end. It is working now.

 

Thank you so much.

Regards,

Vidya

Avatar

Level 10

No problem Vidya! Glad it got sorted. 

TM