Failure to track pages & interactions within your site is a massive schoolboy error!
Yet so many site still don’t have comprehensive analytics tracking on every page. Large clients are the worst culprits as they generally run a hodgepodge of legacy & new content management systems & static pages, so there’s no central variable to ensure analytics codes are on every page. Enter Screaming Frog from a Web/SEO architect P.O.V. this is an essential one to have in your tool kit.
Best of all, it’s free for you to have a play around with. However, if you’re looking at a large site with 500+ urls, you will need a paid-for version.
How to Verify Google analytics tracking code with Screaming Frog
For the purposes of this demo I’m going to check Inside Online Google analytics code: “UA-26869898-1” is present on all of our pages. Fingers crossed, I won’t end up with egg on my face.
Open up Screaming Frog & select custom filter under configuration in the top menu.
Next, enter what you’re looking for in the filters, or in this case, what you’re not looking for, I.E. your Google analytics code.
Filter 1 “does not contains” “UA-26869898-1”
To be comprehensive I’d also recommend adding another filter to see all the pages that do contain the tracking code. You could also use a vlookup to do this but it’s easy just to create another filter.
Filter 2 “contains” “UA-26869898-1”
Next I would also add does not contains
“s.parentNode.insertBefore(ga, s)” This is the last piece of most Google analytics scripts & allows you to check that the code is placed in full on the site, but be warned this is not always the case.
Filter 3 “contains” “s.parentNode.insertBefore(ga, s)”
One last thing, & this is only applicable to sites which use cross domain tracking, is to create a doesn’t contain & contain filter for checking your cross domain parameter. This is normally “setDomainName’, ‘sitename.com.” for this example it will be “setDomainName’, ‘insideonline.com.”
Ready to go!
Now we’ve added all our settings, it’s time to fire your crawler by enter your TLD Top level domain in the “enter url to spider” & click start. If you’re doing this on an external site I would recommend you give them a heads up before running the test just so you don’t cause alarm bells at their end.
Now, to see your results, click on the custom tab & select the appropriate filters.
Screaming Frog a great tool & this is only one example of the many ways it can be used, this tools can be utilised for anything from site architecture to outreach. If you’ve got any inventive way of using Screaming Frog we’d love to hear them, so either comment below or get in touch via twitter @inside_online.