: How to Check that Google Analytics is Successfully installed on every single page of a website Is there any possible way/ method to check that google analytics code is installed on all the
Is there any possible way/ method to check that google analytics code is installed on all the pages of a website?
Please recommend me so, that I can fix that up.
More posts by @Reiling115
1 Comments
Sorted by latest first Latest Oldest Best
You can write a crawler to go through your sitemap.xml (provided you have one, damn, you should have) and crawl through every link provided there and check for ga() being available as a function. A simple script would be:
if(typeof(ga) === 'function' || ga instanceof Function) {
return true;
// handles control to the next check
}
Alternatively, you can use this tool. I used it to crawl my website, and the result was positive, for over 1500 pages it has crawled in the time I wrote this answer.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.