6 Replies Latest reply on May 8, 2013 7:24 AM by 33828

    Google Analytics on Marketo hosted landing pages

    Louis Abate
      Is there documentation available detailing the best practices around using your Google Analytics account on Marketo hosted landing pages? I poked around the documentation section and forms and found a few commenters talking about inserting the code in the HTML header on each landing page and another on inserting it into the footer of the landing page templates... Can someone point me to a setup doc?
        • Re: Google Analytics on Marketo hosted landing pages
          I don't think there is one, although there have been at least a couple of in-depth discussion threads on the topic.
          The crux of the biscuit:
          --add scripts to all of your landing pages the same as your web site pages (easiest to do in templates)
          --set up your G_A account to track multiple subdomains (if it's not already) so you have tracking on specific CNAME subdomain separate from other subdomains of your domain in G_A
          --use utm_ tags for all of your source/campaign code link-tagging in your emails and landing pages, because you'll want to leverage G_A for your marketo analytics, as well.
          • Re: Google Analytics on Marketo hosted landing pages
            Below is the java script that we add below the <!-- SYSTEM FOOTER - DO NOT EDIT --> section in the Landing Page Template and above the </body> tag.

            <!-- Google Analytics -->
            <script type="text/javascript">
              var _gaq = _gaq || [];
              _gaq.push(['_setAccount', 'UA-xxxxxxx-x']);
              _gaq.push(['_setDomainName', '.yourdomain.com']);
              _gaq.push(['_trackPageview']);

              (function() {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
              })();
            </script>
            • Re: Google Analytics on Marketo hosted landing pages
              Elliott - in the default templates, we still see old  analtyics code (see below).  Either way, I assume just uncomment and replace the block with the correct/appropriate code  where it currently is just beneath - <!-- SYSTEM FOOTER - DO NOT EDIT -->
                                  <!-- GOOGLE ANALYTICS.  ENTER YOUR CODE and UNCOMMENT block -->
                                  <!--
                                  <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
                                  </script>
                                  <script type="text/javascript">
                                  _uacct = "YOURCODE";
                                  urchinTracker();
                                  </script>
                                  -->
                                   

              • Re: Google Analytics on Marketo hosted landing pages
                I've been scouring the discussion form and can't seem to find an answer.

                There seems to be an issue with Google Analytics tracking. Our landing pages have the GA code installed but I'm seeing lots of the traffic from different (lead_source) being tagged as Direct traffic versus Refferal. I realized there was something wrong when the Goals I've set didn't match with the refferal sites that we are directing to the landing pages.

                Has anyone had this issue within GA? Tracking multiple subdomains is on and the code looks just like the one Elliot posted.