Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
Can I add Twitter cards using Google Tag Manager
-
Hi,
Can I add Twitter cards code using Google Tag Manager?
Thanks
-
been there done that
but you should not have problems finding references for that all over the web..
Although i must admit, most of my knowledge on GTM is from Simo's blog.and this one can help you out too.
As i have mentioned earlier, as long as your user is coming form a browser newer than ie7 you should e fine.cheers
-
We've actually started putting non essential tags in the footer so they don't slow the page load. That's where we've put tag manager and it still works fine.
-
Hi Jamie,
That's what I though too.
Yossi, where did you get the info that GTM can go in the head? I'd be worried to move it from the body as I'm not sure what difference it would make.
Thanks
-
Actually it is perfectly fine to add the GTM code snippet within the element.
Also this is what majority of WP users do since you do not really have a convenient way to add hooks at the beginning of a body tag in WordPress themes.
The only problem that you might have is with ie7 or older browsers (which is probably around %0.01 visitors anyway)good luck
-
I don't think you can as the tag manager sits in the body, not in the header.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
How can i treat my dog which suffers from kennel cough?
I searched a lot for finding home remedies for kennel cough to treat my dog who suffers from this cough
Social Media | | lowzy0 -
Google SERP shows wrong (and inappropriate) thumbnail for Facebook videos?
Hello I'm running into a strange issue with at least one of my client's video. The video is posted on Facebook. When searching for the video on Google, the SERP shows a completely wrong, and inappropriate, thumbnail image. (And in one case the preview video starts playing within Google SERP.) It also seems that Google is indexing various countries' facebook page for the same video separately (it-it.facebook.com, fr-fr.facebook.com, etc). Note that only the thumbnail and preview video within Google are wrong; if you click on the link, you see the correct video and page. I hesitate to divulge the actual client video, but there are some reports on Google's search community about the same behavior: Here's one that stargs back in March: https://support.google.com/webmasters/thread/33760205?hl=en and a more recent one: https://support.google.com/websearch/thread/71452151?hl=en It looks increasingly like a bug in some google algorithm, but nobody at google seems to acknowledge that. I've unpublished the original video from FB and submitted an 'outdated content' removal to Google, which is pending. In the meantime, my questions for our group of experts here: Has anyone else experienced this and any other suggestionso n how to fix? If we assume that this is not a google bug: how could a malicious actor or black-hat SEO influence Google's algorithms to cause this? Thanks, mickey
Social Media | | infamia0 -
Google Indexed Images: Website Vs Social Media
I use Pinterest, Twitter and Instagram to post images that are already featured on my website. I have been following a routine of uploading the images to these social media platforms only after I can see Google has indexed the image from my original site. My website is ecommerce and the product images drive sales more than any other factor. The thinking behind my method was that when these images are posted on Pinterest, Twitter and the various Instagram crawler sites (I realise Instagram images aren’t indexed directly), Google would recognise that the image was already attributed to my website. The ‘duplicate’ image would not therefore be indexed and the originally uploaded website image would remain in ‘Google Images’. After completing various searches and reviewing other Q&A’s on Moz, it seems as though this is in no way guaranteed and images reposted on social media platforms may still replace the already indexed image from the website. I am assuming this is because Google views these platforms as more authoritative than mine. I usually change the image by adding logos, text, backgrounds, borders etc before posting on Pinterest and this seems to have worked most of the time (both the original and ‘amended for Pinterest’ versions are often indexed) but images posted on other platforms are usually identical. Does it make sense to continue with my method or am I shooting myself in the foot by reposting these images on social media at all? I obviously want customers searching for products, who then click on an image, to be directed to my site rather than one of my social media pages or worse, an image reposting site. Additionally, If I post images on social media before they are uploaded to my website (for example to tease a product launch), would Google likely class these images as the ‘original’ and therefore be less likely to index the website version of the image once it is uploaded? Any thoughts are appreciated.
Social Media | | g3mmab2 -
How long it takes for Twitter carousel to appear under your website in google results
Dear Moz community, Not later than 7 days ago I did impelement twitter markup to a website including : as well as twitter markup to all blog/article posts The question: I mentioned Moz (when you search for this brand name in Google) it shows a recent tweets carousel, how long it takes for it appear on our website and should I do any additional fixes for it to appear ? BWctKyu
Social Media | | admiral990 -
FB:admin tag, Who should it be set to?
I am trying to figure out fb:admin tag. I noticed that Moz uses a person's from hubspot, is this because hubspot connects into their facebook data? Who should my company set it to? Any guides would be helpful. Thanks, Chris
Social Media | | Autoboof0 -
Facebook adds a trailing slash to urls?
Hey Guys, we are facing a problem in our www.batuta.com with Facebook shares. Seems like because we choose to set our preferred canonical version urls to end with a trailing slash ( / ), like this one e.g.: www.batuta.com/الوجهات/إسبانيا/ Facebook adds automatically another ( / ) when trying to read the url on first share before its ever indexed in FB. Which makes Facebook think its a bad request! cause then the URL has two // at the end of it. hope this was clear. anyway, so first question: did anybody face this issue before? any solutions? Second, and might be more important: I might be forced to face the option of changing the canonical tags to be a url without a ( / ) if I will have to do this I will enforce a redirect on every url request with an ending trailing slash ( / ) to be redirected to the new canonical version without. will this be enough? how big am I supposed to suffer here? am I facing a long time with double indexed urls? wonder if anybody faced this problem before! Best Regards
Social Media | | Muhammad_Jabali0 -
How to recover Google+ business page if it gets deleted by mistake ?
Hi, i have a client who has by mistakenly deleted its G+ business page which is having good expousre on Google+. he got worried how to recover it . even i don't know how to do it. any help or discussion for the solution would be appreciated Thanks,
Social Media | | ShaunPhilips0 -
How Can I do SEO for a Escorts Website?
So here comes the hard part of working with SEO.... I've been doing SEO for a quite long time now and as far as I concern, it has been working and that's why I can tell people I'm a SEO Manager! It was all good until 3/4 months ago when I got this client that wanted me to do SEO for his Escort Agency. I've analysed his website and came across some structure error, poor linking and so on... I've started by reformulating his website, re-structuring his urls, keeping good pages and throwing alway the poor content ones, requested some website owners to remove links to that website and so on.... All good and sorted, but when it came to do the off-page optimisation it became a nightmare! It's pretty easy to get links for a clothing website or any other (not "obscure") kind of websites, but no serious and authority websites would link to an escort agency; It's also very easy to create something funny and nice and post it on a page of your website to get people sharing and liking on facebook, but again very hard to get people to share and like things posted by an escort agency... You can't really advertise on escorts directories and use keywords on the ad because godfather google would penalize you.... I really don't know what to do anymore, so I will list some questions and if guys SEO experts could help me out, I would be so grateful!!! How can I get people linking to the website without paying for it? How can I get good authority links to this kind of website? How can I advertise on paid directories without being penalised by google? How can i get shares and likes on social network websites? The website has about 3000 pages, been online since 2010, have at least 3 lengthy articles posted a day! Please guys help me out with this case that is making me loose my nights of sleep... If you guys need the website address and the targeted keyword I can PM you (I dont know if the forum allows me to post it here) Thank You so much for the help in advance....
Social Media | | douglasapuc6