Código de implementação de exemplo

Arquivo AppMeasurement.js de exemplo

A seguir encontra-se um exemplo de como a biblioteca do AppMeasurement e o módulo do Activity Map são combinados no arquivo AppMeasurement.js.

// Initialize AppMeasurement 
 var s_account="INSERT-RSID-HERE" 
 var s=s_gi(s_account)
/******** VISITOR ID SERVICE CONFIG - REQUIRES VisitorAPI.js ********/ 
/************************** CONFIG SECTION **************************/ 
/* You may add or alter any code config here. */ 
/* Link Tracking Config */ 
s.linkInternalFilters="javascript:" //optional: add your internal domain here 
/* uncomment below to use doPlugins */ 
/* s.usePlugins=true 
function s_doPlugins(s) { 
// use implementation plug-ins that are defined below 
// in this section. For example, if you copied the append 
// list plug-in code below, you could call: 
// s.events=s.apl(s.events,"event1",",",1); 
s.doPlugins=s_doPlugins */ 
/* WARNING: Changing any of the below variables will cause drastic 
changes to how your visitor data is collected. Changes should only be 
made when instructed to do so by your account manager.*/ 
/************************** PLUGINS SECTION *************************/ 
// copy and paste implementation plug-ins here - See "Implementation Plug-ins" @ 
// https://docs.adobe.com/content/help/pt-BR/analytics/implementation/vars/plugins/impl-plugins.html 
// Plug-ins can then be used in the s_doPlugins(s) function above

/****************************** START Activity Map MODULE *****************************/ 
 //The following module enables ActivityMap tracking in Adobe Analytics. ActivityMap 
  allows you to view data overlays on your links and content to understand how 
  users engage with your web site. If you do not intend to use ActivityMap, you 
  can remove the following block of code from your AppMeasurement.js file.
  Additional documentation on how to configure Activity Map is available at: 
 function AppMeasurement_Module_Activity Map(g){func 
 /* END Activity Map MODULE */ 
 ============== DO NOT ALTER ANYTHING BELOW THIS LINE ! =============== 
AppMeasurement for JavaScript version: 1.6 
Copyright 1996-2016 Adobe, Inc. All Rights Reserved 
More info available at https://www.adobe.com/marketing-cloud.html 
function AppMeasurement(){var a=this;a.version= 

Nesta página