Analytics understanding

ive been hacked and cannot stop it from happening over and over. what can I learn or use from analytics like stacks and data dog? Anything from what I understand stacks is typically associated with a jailbroken or compromised device