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. Technical SEO Issues
    4. Follow up from http://www.seomoz.org/qa/discuss/52837/google-analytics

    Follow up from http://www.seomoz.org/qa/discuss/52837/google-analytics

    Technical SEO Issues
    8 4 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.
    • Darden
      Darden last edited by

      Ben,

      I have a follow up question from our previous discussion at

      http://www.seomoz.org/qa/discuss/52837/google-analytics

      To summarize, to implement what we need, we need to do three things:

      1. add GA code to the Darden page

      _gaq.push(['_setAccount', 'UA-12345-1']);_gaq.push(['_setAllowLinker', true]);_gaq.push(['_setDomainName', '.darden.virginia.edu']);_gaq.push(['_setAllowHash', false]);_gaq.push(['_trackPageview']);

      1. Change links on the Darden Page to look like

      http://www.darden.virginia.edu/web/MBA-for-Executives/  and [https://darden-admissions.symplicity.com/applicant](<a href=)">Apply Now  and make into  [https://darden-admissions.symplicity.com/applicant](<a href=)" > onclick="_gaq.push(['_link', 'https://darden-admissions.symplicity.com/applicant']); return  false;">Apply Now

      1. Have symplicity add this code.

      _gaq.push(['_setAccount', 'UA-12345-1']);_gaq.push(['_setAllowLinker', true]);_gaq.push(['_setDomainName', '.symplicity.com']);_gaq.push(['_setAllowHash', false]);_gaq.push(['_trackPageview']);

      Due to our CMS system, it does not allow the user to add onClick to the link.  So, we CANNOT add part 2)  What will be the result if we have only 1) and 3) implemented?  Will the data still be fed to GA account 'UA-12345-1'?  If not, how can we get cross domain tracking if we cannot change the link code?

      Nick

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

        You do not have to add onClick event to the link. You may try jQuery and its event binder, such as click(); in your case. Just assign specific classes to these links and do smth like this

        $(document).ready(function{

        $('.class_with_onclick').click(function(){

        //your stuff goes here.

        })

        });

        Sorry if am being too techy

        Darden 1 Reply Last reply Reply Quote 1
        • Darden
          Darden @voitenkos last edited by

          If I understand you correctly, I am hearing this.

          Include a javascript file called replace_on_click.js   which includes

          $(document).ready(function{
              $('.class_with_onclick').click(function(){
                   _gaq.push(['_link', 'https://darden-admissions.symplic...']); return  false;
              })
          });

          Then in html

          [https://darden-admissions.symplic...](<a class=)">Apply Now

          Is this what you are saying?

          voitenkos Darden 3 Replies Last reply Reply Quote 0
          • voitenkos
            voitenkos @Darden last edited by

            Yes , this should work.

            1 Reply Last reply Reply Quote 1
            • Darden
              Darden @Darden last edited by

              I will give it a try and get back to you.

              1 Reply Last reply Reply Quote 0
              • Darden
                Darden @Darden last edited by

                Sergei,

                I have put everything in place that I think I should.  But, my results are not showing up in Google Analytics.   Do you see anything wrong with

                1. The css on the "Apply Now" link at

                http://www.darden.virginia.edu/web/MBA/Admissions/Home/

                1. The code at http://www.darden.virginia.edu/web/js/gaq.js that is included works.

                2. The code at https://darden-admissions.symplicity.com/ works.

                Nothing comes up in Google Analytics content.  What am I missing?

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

                  I think that if you leave out part two, traffic from each site to the other will show up as referred.  I'm not sure that there are any other consequences.

                  As for the jQuery stuff, I can't fault the logic, but I'm no web developer... sorry not to be more helpful.

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

                    Hi Nick,

                    I'm following up on older, unanswered questions here in Q&A. Did you ever get this sorted out?

                    1 Reply Last reply Reply Quote 1
                    • 1 / 1
                    • First post
                      Last post
                    • How to resolve warning of pages with redirect chain when its your http:// to https://www.
                      VelocityWebsites
                      VelocityWebsites
                      0
                      3
                      186

                    • Spammy structured data for http://www.heritageprinting.com/ might be dropped from search results
                      KevnJr
                      KevnJr
                      0
                      3
                      328

                    • Http://flang.dejanseo.com.au/ vs Google WebMaster tool
                      DirkC
                      DirkC
                      0
                      2
                      364

                    • Google showing https:// page in search results but directing to http:// page
                      JaneCopland
                      JaneCopland
                      0
                      4
                      218

                    • Ideally should a 301 or 302 redirect be used from https://www.site.com to http://www.site.com? Is there a valid reason to use a 302 in this situation or would using a 301 have any negative impact on seo?
                      Unity
                      Unity
                      0
                      2
                      317

                    • Expired Domain - http:// or www
                      Klarke
                      Klarke
                      0
                      3
                      387

                    • Url canonicalization: www. to http://
                      MoosaHemani
                      MoosaHemani
                      0
                      6
                      359

                    • In order to improve my google rank, I recently changed my url from http://www.helpwithassignment.com/nursing-assignment-help to http://www.helpwithassignment.com/Assignment-Help/nursing-assignment-help
                      RichaS
                      RichaS
                      1
                      14
                      1.1k

                    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