Skip to content
    Moz logo Menu open Menu close
    • Products
      • Moz Pro
      • Moz Pro Home
      • Moz Local
      • Moz Local Home
      • STAT
      • Moz API
      • Moz API Home
      • Compare SEO Products
      • Moz Data
    • Free SEO Tools
      • Domain Analysis
      • Keyword Explorer
      • Link Explorer
      • Competitive Research
      • MozBar
      • More Free SEO Tools
    • Learn SEO
      • Beginner's Guide to SEO
      • SEO Learning Center
      • Moz Academy
      • SEO Q&A
      • Webinars, Whitepapers, & Guides
    • Blog
    • Why Moz
      • Agency Solutions
      • Enterprise Solutions
      • Small Business Solutions
      • Case Studies
      • The Moz Story
      • New Releases
    • Log in
    • Log out
    • Products
      • Moz Pro

        Your all-in-one suite of SEO essentials.

      • Moz Local

        Raise your local SEO visibility with complete local SEO management.

      • STAT

        SERP tracking and analytics for enterprise SEO experts.

      • Moz API

        Power your SEO with our index of over 44 trillion links.

      • Compare SEO Products

        See which Moz SEO solution best meets your business needs.

      • Moz Data

        Power your SEO strategy & AI models with custom data solutions.

      NEW Keyword Suggestions by Topic
      Moz Pro

      NEW Keyword Suggestions by Topic

      Learn more
    • Free SEO Tools
      • Domain Analysis

        Get top competitive SEO metrics like DA, top pages and more.

      • Keyword Explorer

        Find traffic-driving keywords with our 1.25 billion+ keyword index.

      • Link Explorer

        Explore over 40 trillion links for powerful backlink data.

      • Competitive Research

        Uncover valuable insights on your organic search competitors.

      • MozBar

        See top SEO metrics for free as you browse the web.

      • More Free SEO Tools

        Explore all the free SEO tools Moz has to offer.

      What is your Brand Authority?
      Moz

      What is your Brand Authority?

      Check yours now
    • Learn SEO
      • Beginner's Guide to SEO

        The #1 most popular introduction to SEO, trusted by millions.

      • SEO Learning Center

        Broaden your knowledge with SEO resources for all skill levels.

      • On-Demand Webinars

        Learn modern SEO best practices from industry experts.

      • How-To Guides

        Step-by-step guides to search success from the authority on SEO.

      • Moz Academy

        Upskill and get certified with on-demand courses & certifications.

      • SEO Q&A

        Insights & discussions from an SEO community of 500,000+.

      Unlock flexible pricing & new endpoints
      Moz API

      Unlock flexible pricing & new endpoints

      Find your plan
    • Blog
    • Why Moz
      • Small Business Solutions

        Uncover insights to make smarter marketing decisions in less time.

      • Agency Solutions

        Earn & keep valuable clients with unparalleled data & insights.

      • Enterprise Solutions

        Gain a competitive edge in the ever-changing world of search.

      • The Moz Story

        Moz was the first & remains the most trusted SEO company.

      • Case Studies

        Explore how Moz drives ROI with a proven track record of success.

      • New Releases

        Get the scoop on the latest and greatest from Moz.

      Surface actionable competitive intel
      New Feature

      Surface actionable competitive intel

      Learn More
    • Log in
      • Moz Pro
      • Moz Local
      • Moz Local Dashboard
      • Moz API
      • Moz API Dashboard
      • Moz Academy
    • Avatar
      • Moz Home
      • Notifications
      • Account & Billing
      • Manage Users
      • Community Profile
      • My Q&A
      • My Videos
      • Log Out

    The Moz Q&A Forum

    • Forum
    • Questions
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

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

    1. Home
    2. Digital Marketing
    3. Paid Search Marketing
    4. How to track in Google Analytics 2 different subdomains (one for website, the other for PPC landing pages)

    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.

    How to track in Google Analytics 2 different subdomains (one for website, the other for PPC landing pages)

    Paid Search Marketing
    3
    5
    1496
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with question management privileges can see it.
    • DoMiSoL
      DoMiSoL last edited by

      Hello Mozers!

      I have a website with organic visits/goals on www.site.com and a few AdWords Campaign landing pages on lp.site.com whose goals are tracked with both adwords conversion monitoring AND analytics (not imported from analytics into Adword).

      The landing pages of the campaign have nothing to do with the web site (different cms, they don't link each other, totally isolated) and viceversa.

      Given that, what would it be the best practice to configure Google Analytics to track the website (www.site.com) AND a PPC campagin (lp.site.com)?

      I have been told to set up different views of the same property, but do I really need that?

      Please let me know what are you thinking.

      Thank you very much.

      DoMiSoL Rossini

      1 Reply Last reply Reply Quote 0
      • PatrickDelehanty
        PatrickDelehanty @DoMiSoL last edited by

        Hi D.R.

        To answer question 3, I just realized I sent you Classic GA setup - my apologies. Here is more information on how to set these up:
        Cross Domain Tracking - Web Tracking (analytics.js)
        Set up cross domain tracking Cross Domain Tracking (Google Tag Manager)

        To answer your questions:
        1.) Yes, you can do that. Or you can break it down by hostname as well in your GA data if you don't want to create multiple views.

        2.) I would keep it under the same property. It makes it easier to consolidate your data and you're not clicking back and forth.

        Hope this helps! Good luck!

        1 Reply Last reply Reply Quote 1
        • DoMiSoL
          DoMiSoL last edited by

          Thank you for your kind answers.

          Just to make sure I understand i have three  more questions:

          1. should I set the analytics property on domain.com then set a view pointing to lp.domain.com AND a view pointing to www.domain.com, having both properly filtered ?

          2. At the moment I have the UA property set on lp.domain.com: wouldn't it be good as well to create a new property for www.domain.com (rather than two child views of the same parent Analytics property ? I guess this way I wouldn't need filtering.

          3. By the way I omitted to tell that I am using Universal Analytics: will the references you provided still be applyable to me?

          In the mean time I'll figure out how to actually do the filter and to make sure that this procedure is directly suitable with a Wordpress Plugin called Yoast Analytics, cause I am not sure I can edit the analytics code directly.

          Thank you all again.

          D.R.

          PatrickDelehanty 1 Reply Last reply Reply Quote 0
          • Martijn_Scheijbeler
            Martijn_Scheijbeler last edited by

            Like Patrick already mentioned, what you could do is create a new view which is filtered based on the hostname. This should allow you to make sure you'll only have the data for lp.example.com in there.

            1 Reply Last reply Reply Quote 1
            • PatrickDelehanty
              PatrickDelehanty last edited by

              Hi there

              Google has resources on this - check out Tracking Multiple Domains - Web Tracking (ga.js).

              Also, Moz has a great resource called How to Quickly (and Correctly) Track Google Analytics Across Multiple Domains.

              Hope these help! Good luck!

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post

              Got a burning SEO question?

              Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


              Start my free trial


              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.

              • See all categories

              Related Questions

              • Alex_Pisa

                "Duplicate without user-selected canonical” - impact to Google Ads costs

                google ads canonical

                Hello, we are facing some issues on our project and we would like to get some advice. Scenario
                We run several websites (www.brandName.com, www.brandName.be, www.brandName.ch, etc..) all in French language . All sites have nearly the same content & structure, only minor text (some headings and phone numbers due to different countries are different). There are many good quality pages, but again they are the same over all domains. Current solution
                Currently we don’t use canonicals, instead we use rel="alternate" hreflang="x-default": <link rel="alternate" hreflang="fr-BE" href="https://www.brandName.be/" /> <link rel="alternate" hreflang="fr-CA" href="https://www.brandName.ca/" /> <link rel="alternate" hreflang="fr-CH" href="https://www.brandName.ch/" /> <link rel="alternate" hreflang="fr-FR" href="https://www.brandName.fr/" /> <link rel="alternate" hreflang="fr-LU" href="https://www.brandName.lu/" /> <link rel="alternate" hreflang="x-default" href="https://www.brandName.com/" /> Naturally this si reflected in ""Duplicate without user-selected canonical” . Issue
                We create the same ad in Google Ads for 2 domains. So the content is mostly identical, ads are identical, target URLs differ only in domain. Yet Google Ads “Quality score” is different (10/10 vs. 6/10) and “Landing page experience” is very different (Above average vs. Average). Some members of our team think lower “Landing page experience” increases the Google Ads costs, which I personally don't believe, but I want to double check. Question: Can “Duplicate without user-selected canonical” issue decrease the “Landing page experience” rating and as result can it cause higher Google ads costs? Any suggestions/ideas appreciated, thanks. Regards.

                Paid Search Marketing | | Alex_Pisa
                0
              • vgusvg

                301 Redirects and Google Shopping Feeds

                I am moving my site from Volusion to Shopify.  The domain remains the same but the URL paths are different.  With respect to my Google Shopping feed, is it best to send old URLs (with 301 redirects) or to send the new URLs?

                Paid Search Marketing | | vgusvg
                0
              • SEODarren

                Adwords Conversions - Trying to track button clicks that fire when Bootstrap modal contact form clicked/opened

                Hi there, I'm trying to implement google adwords conversions on a particular client's website. They have used bootstrap as the framework for their site and mainly open up contact forms within a bootstrap modal, after a button is clicked. See here: http://www.gtwstorage.co.uk/ I thought I had successfully implemented the adwords conversion tracking however it has been a week now, and my conversions still say they are "unverified". I wonder if anyone else has encountered this before and knows what I might be doing wrong. Thank you in advance, Darren

                Paid Search Marketing | | SEODarren
                0
              • JoeyPasq

                Is there a way to track visitors that watched my video on YouTube and became a direct visitor to my website after the fact?

                I am trying to understand the impact my commercials are having on website beyond just the clicks I get from YouTube as a referring site. Google is telling me there is not a way to track users that have viewed a video. I am trying to think outside of the box to figure out a way to use the remarketing cookie to my advantage. Google says there is not a way to track a user that watched a video and then eventually came to my site. But at the same time the "Earned Views" metric is similar to what I am trying to accomplish. As per Google, "An earned view occurs when someone who views your video ad and then watches another video or videos in a linked YouTube channel within 7 days of the ad view." So I want to be able to apply this same method to people that view my video ad and then surface on my website eventually. Please let me know your thoughts on this and if there is a way to accomplish this goal. Thank you

                Paid Search Marketing | | JoeyPasq
                0
              • devdan

                Moving from old GTM to New Version of GTM - Analytic & Adwords transaction and revenue stop refelecting

                Hi Guys, I am moving from old version of tag manager to new version of tag manager. But when i do so at that time in my google analytic 1) my adwords transaction, revenue and ecommerce conversion rate stop showing. 2) In ecommerce -overview also transaction, revenenue and ecommermce conversion rate stop showing. Can any one tell me what is the issue? I am sharing with you the details configuration of my old tag manager and new version of tag manager - I am using google analytic having id - UA-12345678-9 I am using old version of google tag manager in that i have configure 5 tags - a) google adwords conversion tracking
                b) GA pageview tracking
                c) google remarketing
                d) GA conversion tracking
                e) twitter conversion tracking I did following configuration for all - Tag Name - google adwords conversion tracking
                tag type - Adwords conversion tracking
                conversion id - 123123123 ( from adwords)
                conversion lable - sdfsnfs-sfsf ( from adowrds) Firing rule -{{url}} contains ordersuccessful.aspx
                {{event}} equals gtm.dom save Google Analytic PageView Tracking
                Tag Type - classic Google Analytic
                web properid id - UA-12345678-9
                track type - page view Firing rule - all pages save GA conversion Tracking
                tag type - classic google analytics
                web property id - UA-12345678-9
                track type - transaction Firing rule -{{url}} contains ordersuccessful.aspx
                {{event}} equals gtm.dom By above configuration everything work fine with google analytic. In New versoin of tag mananger following configuration i did - Adwords conversion tracking
                Choose Product - Google Adwords
                choose tag type - adwords conversion tracking
                configure tag - conversion id - taken from adwords
                conversion label - taken from adwords
                conversion value - {{google_conversion_value}}
                Fire on - Name - order successful page
                type - custom event
                Filter- Page url contains ordersuccessful.aspx
                event equals gtm.dom save Choose Product - Google Analytic,
                choose tag type - universal analytic
                configure tag - tracking id - UA-12345678-9, track type - page view Fire on - All pages save GA conversion tracking Choose Product - Google Analytic,
                choose tag type - universal analytic
                configure tag - tracking id - UA-12345678-9, track type - transaction Fire on - Name - order successful page
                type - custom event
                Filter- Page url contains ordersuccessful.aspx
                event equals gtm.dom save By above configuration my analytic stop reflecting transaction, revenue, ecommerce conversion rate for adwords and ecommerce overview. Thanks!

                Paid Search Marketing | | devdan
                0
              • spencerhjustice

                Why does my google analytics show a massive discrepancy from facebook's reported website clicks?

                We're running a Facebook news feed ad that is pointing at our homepage. Facebook says that for yesterday there were 47 website clicks. Google analytics shows 15 total visitors from facebook with 3 of them landing on the homepage. I understand that there is likely going to be some discrepancy with users accidentally clicking and clicking back before the page loads, but this seems a little insane. I tested the ad using a page that pulls the Analytics cookie data using php and it is working properly so I don't understand what's happening. The url isn't tagged with utm parameters, which is going to be fixed.  Anyone experience this or have any insight as to what could be this issue? Is this click fraud? Edit: For more clarification I was checking on my completely unfiltered google analytics profile/view.

                Paid Search Marketing | | spencerhjustice
                0
              • cristiano71

                Multiple Remarketing Tag on a single web page?

                Hello, I'm using AdWords remarketing, I would like to know if I can use more than a Tag on a single web page. Thank you, Cristiano

                Paid Search Marketing | | cristiano71
                0
              • MattAntonino

                PPC question for the experts

                I know this is paid search but since Moz had a section for it, I thought it would be ok to ask. 🙂 According to: http://support.google.com/adwords/answer/2497836?hl=en Broad match modifier +tennis +shoes Ads may show on searches for tennis shoes
                buy tennis shoes
                best shoes for tennis Ads won't show on searches for running shoes
                tennis sneakers I'm using (for a client) +wedding +photographer.  It should show on wedding photographer hire a wedding photographer best wedding photographer in dallas It should not show on photographer in Dallas become a photographer dallas pictures But it is.  Why would this happen?  Isn't that exactly what it says it won't show up on? Also, Google writes: Don't leave space between the plus sign (+) prefix and the word you're modifying! •Correct: +leather +shoes
                •Incorrect: + leather + shoes
                •Incorrect: +leather+shoes Yet the client was told by Google the opposite.  "I spoke with Google and they confirmed that the space after the plus and before wedding (“+ wedding”) would notrequire “wedding” to show up." How on Earth does this reconcile or make ANY sense? ETA:  This is fairly clear to me: Be sure there are no spaces between the + and modified words, but do leave spaces between words. The right way to do it: +formal +shoes. The wrong way to do it: +formal+shoes. http://www.google.com/ads/innovations/bmm.html

                Paid Search Marketing | | MattAntonino
                0

              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
              Free SEO Tools
              • Domain Authority Checker
              • Link Explorer
              • Keyword Explorer
              • Competitive Research
              • Brand Authority 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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy

              Looks like your connection to Moz was lost, please wait while we try to reconnect.