Is code actually rendered, when you see source in browser (ctrl-u in Chrome)?
Do you have some kind of GDPR addon that disable tracking codes/cookies? Last time this was the problem of one of my clients,
I have only a one pager. Does it make a difference where I place the script - in “Extra Header Content” or in Tracking codes like @vergedesign suggests?
Hi, if you are using GTM - you have two pieces of code. Insert one in the SEO section, the other in the HTML block at the top position above the navigation section, as shown in the picture.
Sorry, need to come again. I placed the corresponding part into a basic html block in an emty area, - the first area of the page. Site now renders weird and cuts out all formatting.
Where exactly do you put that snippet?
(Google says it needs to go right after the body tag)
from what I know it’s rather not.
Put the second part in the “HTML block” and put it in any place in the part common to all pages (global area) - i.e. in the nav section for example.
Hi @blinkdesign are you trying to verify your account in Google search console? I love the domain verification option because it tracks all the URLs. SSL, Non-SSL, and it automatically verifies any subdomains)
hi @blinkdesign,
If the site is not indexed properly, then GTM won’t work. I had no success with indexing. Something in the CMS or code is keeping Google from indexing. I have no idea about it, very frustrating. Keep me posted if you have success.
Best
Cedric.
Hello Cedric
We do not fully understand what exactly causes this problem. It took us a while to find, that with one pager there is an indexing problem. So we fixed it and it finally works now.
We had in our one pager several sections with # anchors as navigation. Google apparently doesn’t like that because it confuses its indexing. So make sure you use no anchors for scrolling navigation. Create separate url’s/H1 titles for the sections and use AJAX so it loads when a user scroll more down.
As I see, you’re in Germany, so I can recommend this blog entry (in german): SEO für eine One-Page-Website - BlueGlass
Good luck. Let me know.
Hey @blinkdesign
Yes, we had a scrolling to #anchor script using jQuery. We removed it and guess what! Google indexed the site and installed gtm. Phantastic, it saved us a whole lot of tinkering around. Vielen Dank nach Zürich. Cedric