Pull out analytics into include file; attribution