I want the ability to record ips of everyone who visits my site so in the event the violate TOS I can ban the IP, I have a competitor stalking my site and harassing me id like to block her but shopify has a different code other than what I have learned in school and im lost.
I've tried blocking at the domain level through my cpanel but i dont know the Ip and the harassing emails shes sent me have only the servers smpt id and it appears to be hidden, I also tried using google analytics to create a filter to retrieve the IP address but Im not sure if i created the filter right.
I'm wondering there is just a code snippet I can paste into Shopify to fix this problem. Otherwise, I might go back to WordPress as I am unfamiliar with Shopify's code language.
this is what i was attempting https://www.roirevolution.com/blog/2006/09/view-visitor-ip-address-in-google-analytics/