Expand my Community achievements bar.

Webinar: Adobe Customer Journey Analytics Product Innovations: A Quarterly Overview. Come learn for the Adobe Analytics Product team who will be covering AJO reporting, Graph-based Stitching, guided analysis for CJA, and more!
SOLVED

Where can I find values for analytics set up with Javascript?

Avatar

Level 2

Here are the values I need, but I'm not sure how to find them.

  • s.account="INSERT-RSID-HERE"
  • s.trackingServer="INSERT-TRACKING-SERVER-HERE"
  • s.visitorNamespace = "INSERT-NAMESPACE-HERE"
  • s.visitor = Visitor.getInstance("INSERT-MCORG-ID-HERE")
1 Accepted Solution

Avatar

Correct answer by
Level 4

Hello My Friend,

Although, Adobe recommends using the Adobe Analytics inbuilt libraries in Adobe DTM and all these values are configured in the dedicated fields in DTM console. That being said, there are many instances where one might want to use the Custom Analytics library (Custom Requirements, Using any other Tag Manager or No Tag Manager Used, etc) and in this case, there are certain variables that one has to configure like the ones you have given in your post.

Now, enough of background and let me come to the point. Please find my responses for each of these variables inline

  • s.account="INSERT-RSID-HERE"

Harsh: This is the variable where we provide the Report Suite ID (RSID). It can take more than one RSIDs separated by comma in case of more than 1 report suites. You can get these RSIDs values from your Adobe Analytics console by navigating to the path given: Adobe Analytics --> Admin --> Report Suites

  • s.trackingServer="INSERT-TRACKING-SERVER-HERE"

Harsh: This value depends on the tracking server on which your Adobe Analytics account is configured by Adobe folks. Please contact Adobe Client Support to get this value. This should look something like this "<VisitorNameSpaceValue>.d2.sc.omtrdc.net" for the first party implementations.

  • s.visitorNamespace = "INSERT-NAMESPACE-HERE"

Harsh: The value of this variable also depends on how Adobe folks have configured your company/account for Adobe Analytics. Please contact Adobe Client Support to get this value.

  • s.visitor = Visitor.getInstance("INSERT-MCORG-ID-HERE")

Harsh: This is the Visitor ID Service Config which requires VisitorAPI.js. In case you are using the Marketing Cloud Visitor ID in DTM, you don't need to configure it in your s_code (appMeasurement.js) file. In case you need to configure this, please contact Adobe Client Care to get the value.

Hope this helps and Don't forget to like this comment

Thanks,

Harsh Kabra |  Adobe Certified Expert: Analytics Architect ®

Certified_Expert_Adobe_Analytics_Architect_badge.png

View solution in original post

2 Replies

Avatar

Employee Advisor

The Adobe recommended way of deploying Adobe Analytics is via Adobe DTM (Dynamic Tag Manager) rather than the legacy JavaScript deployment. When you do this, most of these values are automatically populated for you, or available via dropdown.\

However, if you have a special reason for not following this best practice, and need to get those values:

s.account, s.trackingServer, s.visitorNamespace - this can come from the following location:

Adobe Analytics > Admin > Code Manager > The link at the very bottom of the page to the Legacy Code Manager >

Select your Report Suite > Generate Code > Core Javascript File.

There, you'll find:

s_account - this is your s.account, and the other two are listed as requested a little further down the JS file.

For your MCORG-ID, please contact Client Care.

Avatar

Correct answer by
Level 4

Hello My Friend,

Although, Adobe recommends using the Adobe Analytics inbuilt libraries in Adobe DTM and all these values are configured in the dedicated fields in DTM console. That being said, there are many instances where one might want to use the Custom Analytics library (Custom Requirements, Using any other Tag Manager or No Tag Manager Used, etc) and in this case, there are certain variables that one has to configure like the ones you have given in your post.

Now, enough of background and let me come to the point. Please find my responses for each of these variables inline

  • s.account="INSERT-RSID-HERE"

Harsh: This is the variable where we provide the Report Suite ID (RSID). It can take more than one RSIDs separated by comma in case of more than 1 report suites. You can get these RSIDs values from your Adobe Analytics console by navigating to the path given: Adobe Analytics --> Admin --> Report Suites

  • s.trackingServer="INSERT-TRACKING-SERVER-HERE"

Harsh: This value depends on the tracking server on which your Adobe Analytics account is configured by Adobe folks. Please contact Adobe Client Support to get this value. This should look something like this "<VisitorNameSpaceValue>.d2.sc.omtrdc.net" for the first party implementations.

  • s.visitorNamespace = "INSERT-NAMESPACE-HERE"

Harsh: The value of this variable also depends on how Adobe folks have configured your company/account for Adobe Analytics. Please contact Adobe Client Support to get this value.

  • s.visitor = Visitor.getInstance("INSERT-MCORG-ID-HERE")

Harsh: This is the Visitor ID Service Config which requires VisitorAPI.js. In case you are using the Marketing Cloud Visitor ID in DTM, you don't need to configure it in your s_code (appMeasurement.js) file. In case you need to configure this, please contact Adobe Client Care to get the value.

Hope this helps and Don't forget to like this comment

Thanks,

Harsh Kabra |  Adobe Certified Expert: Analytics Architect ®

Certified_Expert_Adobe_Analytics_Architect_badge.png