title: s_gi not defined for Adobe Analytics when loading Analytics libraries from Adobe DTM
body: <p>I want to add customized code in HTML pages that use Adobe Analytics. I am loading the Adobe Analytics using Adobe DTM, but the customized analytics code does not work:</p>
  
  <ul>
  <li>Page: <a href="http://tru.am/scripts/pages/fb.instant.articles.002.adobe.analytics.web.html" rel="nofollow noreferrer">http://tru.am/scripts/pages/fb.instant.articles.002.adobe.analytics.web.html</a></li>
  <li>The Analytics trigger and I see the page view, no problem with that</li>
  <li>The issue is when I add the customized code:</li>
  </ul>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt; body&gt;
        &lt;script language="JavaScript" type="text/javascript"&gt;
          var s_account="museplatamerptrsdtemplate";
          var s = s_gi(s_account);
          s.pageName="Test for FIA - Adobe Analytics 002"
      
          s.prop1="TRUE ANTHEM page"
          s.prop2="Web Page, Desktop"
          s.prop3="TRU.AM Domain"
          s.prop4=""
          s.prop5=""
          /* Conversion Variables */
      
          /* s.campaign=""
          s.state=""
          s.zip=""
          s.events=""
          s.products=""
          s.purchaseID=""
          s.eVar1=""
          s.eVar2=""
          s.eVar3=""
          s.eVar4=""
          s.eVar5="" */
          s.eVar1=""
          s.eVar2="Web Page, Desktop"
          s.eVar3="TRU.AM Domain"
      
          var s_code=s.t();if(s_code)document.write(s_code)//--&gt;&lt;/script&gt;
        
      ...</code></pre>
  </div>
  </div>
  </p>
  
  <ul>
  <li><p>The error I get is that the <code>s_gi</code> function is not defined:</p>
  
  <p><code>Uncaught ReferenceError: s_gi is not defined
      at fb.instant.articles.002.adobe.analytics.web.html:46</code></p></li>
  <li><p>But DTM is loading the library on <code>http://assets.adobedtm.com/4fd579a8bf542838e76bfff27dfe696fdc4b3df8/s-code-contents-f2908a5893037bc0933bbe024dfe4477fbd0c725.js</code>, where <code>s_gi</code> is defined</p></li>
  <li>What is wrong here? Any help will be appreciated.</li>
  </ul>