Google Analytics Tracker file in Android library module
<p>I am trying to split my Google Analytics code into a separate module (package com.abc) from my main app (package com.xyz). I am facing these issues :</p>

<ol>
<li>Should I generate tracker for app module, or library module ?</li>
<li>Where should I put this tracker - app or library module ?</li>
<li>My goal is to have all Analytics creation and handling logic in the library module through some interfaces. I want to use this library for my other projects too; so I don't want to put tracker files in the library module itself. Is there a way I can initialize the tracker in the library module, but keep the XML file in app module  ?</li>
</ol>

<p>What I have tried (and failed) :</p>

<ol>
<li>I have generated tracker files for both com.abc and com.xyz</li>
<li>I have tried all permutations of both files in both modules; but the library module is unable to resolve R.xml.global_tracker. Being new to Google Analytics I don't know if I have to copy/paste any tracker file. Before I made the library module, R.xml.global_tracker was automatically resolved in the main module.</li>
</ol>