{"id":4546,"date":"2020-08-03T11:16:01","date_gmt":"2020-08-03T08:16:01","guid":{"rendered":"https:\/\/trackingchef.com\/?p=4546"},"modified":"2020-12-30T12:18:40","modified_gmt":"2020-12-30T09:18:40","slug":"excluding-wordpress-preview-traffic-in-google-analytics","status":"publish","type":"post","link":"https:\/\/trackingchef.com\/google-analytics\/excluding-wordpress-preview-traffic-in-google-analytics\/","title":{"rendered":"Excluding WordPress preview traffic in Google Analytics"},"content":{"rendered":"\n
A common issue with Google Analytics is internal traffic crowding your reports.<\/p>\n\n\n\n
The standard way to exclude such traffic from your reporting is by creating a filter to exclude any traffic from known IPs (see here how<\/a>). While this tactic is great, in times such as COVID-19, with many of the team working from home, managing the IP exclusions is difficult.<\/p>\n\n\n\n One quick way to solve this (to some extent) is by excluding known URLs from reporting to Google Analytics. If you’re using WordPress (like I am), you might want to exclude the Preview pages of your posts.<\/p>\n\n\n\n To achieve this we will need to create a simple ‘Custom Filter’.<\/p>\n\n\n\n
\\?(p=.*|preview=true)<\/em><\/li>