This is important since to work properly, Google Tag Manager tracking code should be installed right after the opening of the tag.Ī quick search using this CSS selector gave me a list of pages which have the tracking implemented correctly: ![]() :first-child requires that the element ( in our case) must be the first child of its parent ( ). Make sure to replace your_tracking_id with your own ID, such as "59ZP3B".Ĥ. iframe will search for an tag that has an src attribute that ends with GTM- your_tracking_id, the ID of the Google Tag Manager container. :has() indicates that the element we've defined must contain the element specified in parenthesis.ģ. body > noscript selects all tags that are direct children of the tag.Ģ. While it may look a little daunting at first glance, let's split this query into parts and see what it really does.ġ. The following selector will help you find all the pages that exactly match this criterion:īody > noscript:has(iframe):first-child To make sure GTM tracking is implemented correctly, using CSS selectors is your best option. ![]() Voila - you've got a list of pages that do (or don't) have the tracking code implemented.īut hang on - what if the code itself is there, but it's not in the right places or is implemented incorrectly? This can frequently happen if your site has been online for a while and is relatively big. The simple way of doing this is by using the Contains (or Does not contain) search mode and typing in the specific code that you are looking for, such as, your Tag Manager tracking ID: With Custom Search in WebSite Auditor, you can check if the Google Analytics or Tag Manager code is implemented across all of these pages, and, if not, which pages it's not on. If at least some of that is the case, you'll likely end up with a dozen of scripts to control and a dozen of HTML templates they may hide in. It may have a blog, a forum, an online store, a bunch of old, static pages, and, to top these up, some fancy redesigned area steered by Drupal or Joomla. Let's say your website has been online for a while. But even with Tag Manager, things can get (very) messy. Luckily, there's Google Tag Manager now - it keeps all your marketing scripts under one roof and makes it easier to control them. How many tracking tags do you have on your website? Even if you "only" buy paid traffic from Google, Bing, Twitter, and Facebook and track SEO behavioral factors with Google Analytics, the number may well be over a dozen. Verify installation of tracking codes (Google Tag Manager, Google Analytics, conversion pixels, etc.) ![]() Here, you can select whether or not you want the crawler to follow robots.txt instructions, filter out certain pages or folders from the crawl, choose to execute JavaScript so that dynamically generated content gets crawled, and so on.īut enough with the theory - let's try using Custom Search on your own website. Go to the Pages dashboard and click on the Custom Search button (mind that to use the option, you'll need a Professional or Enterprise WebSite Auditor license). To get a feel of how Custom Search works, fire up WebSite Auditor ( download it here if you don't already have it) and create a project for your site. These pieces can be fairly simple - say, if you're looking to find every mention of a certain SEO keyword on your website - and pretty complex - if you'd like to ensure that Google Tag Manager code is installed on your pages, appears at the right place in the HTML, and contains the correct tracking ID. Simply put, Custom Search is an option in WebSite Auditor that lets you look for specific pieces of content (text, HTML code, scripts, etc.) while crawling a site. ![]() Discover the most shared content on a siteīut before we get there… What's Custom Search? Find pages that (don't) have social buttons, embedded videos, etc. Look for traces of outdated content when making sitewide changes Check keyword usage in important page elements
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |