[{"@context":"https:\/\/schema.org\/","@type":"BlogPosting","@id":"https:\/\/rikwilliams.net\/articles\/crazyegg-regex-exclude-index-root\/#BlogPosting","mainEntityOfPage":"https:\/\/rikwilliams.net\/articles\/crazyegg-regex-exclude-index-root\/","headline":"CrazyEgg RegEx to exclude an index or root","name":"CrazyEgg RegEx to exclude an index or root","description":"Using Regular Expressions to enhance filtering in CrazyEgg. ","datePublished":"2013-08-09","dateModified":"2022-03-16","author":{"@type":"Person","@id":"https:\/\/rikwilliams.net\/author\/rik-williams\/#Person","name":"Rik Williams","url":"https:\/\/rikwilliams.net\/author\/rik-williams\/","identifier":2,"image":{"@type":"ImageObject","@id":"https:\/\/secure.gravatar.com\/avatar\/35d65ebc4d1c33f798903330b9f4d84218ea771c1dc52a617681278e13158b86?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/35d65ebc4d1c33f798903330b9f4d84218ea771c1dc52a617681278e13158b86?s=96&r=g","height":96,"width":96}},"publisher":{"@type":"Person","name":"Rik Williams","image":{"@type":"ImageObject","@id":"https:\/\/rikwilliams.net\/wp-content\/uploads\/2020\/04\/rik-williams-ux-architect.png","url":"https:\/\/rikwilliams.net\/wp-content\/uploads\/2020\/04\/rik-williams-ux-architect.png","width":500,"height":500}},"image":{"@type":"ImageObject","@id":"https:\/\/rikwilliams.net\/wp-content\/uploads\/2013\/08\/crazy-egg-click-scroll-analytics.jpg","url":"https:\/\/rikwilliams.net\/wp-content\/uploads\/2013\/08\/crazy-egg-click-scroll-analytics.jpg","height":577,"width":900},"url":"https:\/\/rikwilliams.net\/articles\/crazyegg-regex-exclude-index-root\/","about":["Articles"],"wordCount":141,"keywords":["Analytics","Usability Testing","User Research"],"articleBody":"CrazyEgg is a remote testing analytics tool that tracks click and scroll data in web interfaces. Whilst CrazyEgg includes functionality to enable customisable URL tracking rules, it doesn&#8217;t explain how to use RegEx to easily exclude the index of a folder.This can be an issue if you:cannot easily remove the tracking JavaScript from the indexneed to simultaneously track the index and its child interfacescannot chunk the children into a separate folderRegEx to the rescue!The following RegEx will enable CrazyEgg to ignore an index but track its children:http:\/\/www.domain.com\/staff-profiles\/.+$ index not trackedhttp:\/\/www.domain.com\/staff-profiles\/john-smith\/ child trackedHat tip: Steve Jordan, Web Developer.Update from CrazyEgg support&#8220;Regular Expression are not really good at exclusions. Try something like the follow [sic]&#8221;:^https?:\/\/www\\.domain\\.com\/staff\\-profiles\/[^index]"},{"@context":"https:\/\/schema.org\/","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Articles","item":"https:\/\/rikwilliams.net\/articles\/#breadcrumbitem"},{"@type":"ListItem","position":2,"name":"CrazyEgg RegEx to exclude an index or root","item":"https:\/\/rikwilliams.net\/articles\/crazyegg-regex-exclude-index-root\/#breadcrumbitem"}]}]