The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Social Media
    4. Can I add Twitter cards using Google Tag Manager

    Can I add Twitter cards using Google Tag Manager

    Social Media
    6 3 1.1k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Houses
      Houses last edited by

      Hi,

      Can I add Twitter cards code using Google Tag Manager?

      Thanks

      1 Reply Last reply Reply Quote 0
      • Jamieriddell
        Jamieriddell last edited by

        I don't think you can as the tag manager sits in the body, not in the header.

        1 Reply Last reply Reply Quote 0
        • Yoav-Blustein
          Yoav-Blustein last edited by

          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 🙂

          1 Reply Last reply Reply Quote 0
          • Houses
            Houses last edited by

            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

            Yoav-Blustein 1 Reply Last reply Reply Quote 0
            • Jamieriddell
              Jamieriddell last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • Yoav-Blustein
                Yoav-Blustein @Houses last edited by

                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

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Is google plus really useful?
                  nhhernandez
                  nhhernandez
                  1
                  5
                  804

                • How can I most effectively use Twitter to increase traffic and promote sales for our fine art business?
                  -Ash-
                  -Ash-
                  0
                  5
                  153

                • Google+ author tags and product descriptions - Can we author tag it to protect it if its custom written?
                  Christy-Correll
                  Christy-Correll
                  1
                  5
                  173

                • Google Plus - Using Personal Account or Google Apps Business Account?
                  Ron_McCabe
                  Ron_McCabe
                  0
                  3
                  323

                • Can I use The keyword "Facebook" in my Google Ad in Adwords?
                  Jinx14678
                  Jinx14678
                  0
                  2
                  292

                • Can I Have Google plus snippet code in each of my web page, If i insert google plus snippet code in each page, weather there are more chances of clicks in search queries. does snippet boost seo rankings.
                  danatanseo
                  danatanseo
                  0
                  2
                  314

                • What can Google tell from a video?
                  EnhancedPath
                  EnhancedPath
                  0
                  4
                  803

                • Can facebook comments be crawl by google using the open grap API?
                  G-Force
                  G-Force
                  0
                  4
                  2.3k

                Get started with Moz Pro!

                Unlock the power of advanced SEO tools and data-driven insights.

                Start my free trial
                Products
                • Moz Pro
                • Moz Local
                • Moz API
                • Moz Data
                • STAT
                • Product Updates
                Moz Solutions
                • SMB Solutions
                • Agency Solutions
                • Enterprise Solutions
                • Digital Marketers
                Free SEO Tools
                • Domain Authority Checker
                • Link Explorer
                • Keyword Explorer
                • Competitive Research
                • Brand Authority Checker
                • Local Citation Checker
                • MozBar Extension
                • MozCast
                Resources
                • Blog
                • SEO Learning Center
                • Help Hub
                • Beginner's Guide to SEO
                • How-to Guides
                • Moz Academy
                • API Docs
                About Moz
                • About
                • Team
                • Careers
                • Contact
                Why Moz
                • Case Studies
                • Testimonials
                Get Involved
                • Become an Affiliate
                • MozCon
                • Webinars
                • Practical Marketer Series
                • MozPod
                Connect with us

                Contact the Help team

                Join our newsletter
                Moz logo
                © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                • Accessibility
                • Terms of Use
                • Privacy