I recently redesigned my website and it is also responsive (web design that is fluid and responds to change depending on screen size). It requires me not to just test my website in different browsers, but also on different devices, such as an iPad and anyone’s smartphone I can get my hands on. Spending a lot of time on my phone loading pages made my Google Analytics inaccurate.
I filtered out my personal computer’s IP address. The idea was to find out the IP address of my phone and iPad, it use to connect to the internet, and do the same. Luckily I stumbled across this very useful article by fritteritter on HubPages:
Instead of adding a filter for an IP range in Google Analytics, this article share JavaScript code to paste in the address bar of the website/page that needs to be filtered out.
Basically, I just had to create a filter in Google Analytics to set a unique word. Paste the code with the unique word in the address bar of whichever browser or device I am using to test my website. A popup box with the unique word will appear to indicate it has been sent successfully. This code store the unique word for Google to identify the computer when browsing the website and exclude the ‘hits’ out of Google Analytics.
With no copy and paste option for my Android phone the process was a bit tedious… but after careful touch screening I did get the ‘good to go’ pop-up!
Leave a Reply