Customizing s_code | Community
Skip to main content
davidb98884514
Level 3
October 16, 2015
Solved

Customizing s_code

  • October 16, 2015
  • 7 replies
  • 2471 views

Is it possible to replace instances of "s." to "sr." within the s_code.js only when "s." is used as a variable?

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 Gigazelle

Hi David,

Yes, it is possible to use a different appmeasurement instance variable. You have two options:

  • (Recommended) Use DTM. There is an option to change s to whatever variable you'd like.
  • Have a supported user contact Customer Care and request an alternate s_code.js file. Agents have access to a tool which compiles the latest s_code.js file with any custom variable you'd like, preceded with "s_".

7 replies

WhoaShekhar
Level 10
October 16, 2015

Hi there,

Thanks for reaching out to Community.

Changing the variables can lead to problems: See the below doc for example:

https://marketing.adobe.com/resources/help/en_US/sc/implement/appmeasure_mjs_pagecode.html

Thanks!

Gigazelle
Adobe Employee
GigazelleAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi David,

Yes, it is possible to use a different appmeasurement instance variable. You have two options:

  • (Recommended) Use DTM. There is an option to change s to whatever variable you'd like.
  • Have a supported user contact Customer Care and request an alternate s_code.js file. Agents have access to a tool which compiles the latest s_code.js file with any custom variable you'd like, preceded with "s_".
deepak_jain2
October 28, 2016

s_code.js update version from where i can download.

TanmayMathur
Adobe Employee
Adobe Employee
October 28, 2016

DEEPAK jain wrote...

s_code.js update version from where i can download.

 

If you have admin priviledges you can download the latest javascript from Admin> Code Manager

deepak_jain2
October 28, 2016

Yeah I am having the admin previlage. Please find the attached screenshot for your reference. i dont see s_code.js anywhere.

TanmayMathur
Adobe Employee
Adobe Employee
October 28, 2016

Download the 'Javascript new' files. The new name for s_code is appmeasurement.js which you will find in the downloaded folders.

Thanks

deepak_jain2
October 28, 2016

Thanks Tanmay. 

Please find the attached file .This is what my file is i need one help.. if you see many places new fuction is used which from security point of view is not recommended.

They told us to remove new function from the file and you will be good is there a way if you can provide me the updated code of attached s_code.js