Marketo and Google analytics | Community
Skip to main content
November 28, 2013
Solved

Marketo and Google analytics

  • November 28, 2013
  • 2 replies
  • 1621 views
Hello

We want to be able track how well our campaigns are doing, and any sales made from these on our website. We don't use sales force (we use Sage SalesLogix). How can we add this into our campaigns to track sales and what do we need to add in to be able track (does it go in the email/template/outbound campaign???)?

Do Marketo and Google analytics work together?

Thanks!
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by
You can use a HTML block on a landing page to add Google Analitics to Marketo. The current script (Nov 2013) is
 
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
 
ga('create', 'UA-XXXX-Y', 'auto');
ga('send', 'pageview');
 
</script>
<!-- End Google Analytics -->


where UA-XXXX-Y is your GA code


The script source and future updates can be found at https://developers.google.com/analytics/devguides/collection/analyticsjs/

A complete overview of all resources can be found at https://developers.google.com/analytics/devguides/collection/

2 replies

Accepted solution
November 28, 2013
You can use a HTML block on a landing page to add Google Analitics to Marketo. The current script (Nov 2013) is
 
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
 
ga('create', 'UA-XXXX-Y', 'auto');
ga('send', 'pageview');
 
</script>
<!-- End Google Analytics -->


where UA-XXXX-Y is your GA code


The script source and future updates can be found at https://developers.google.com/analytics/devguides/collection/analyticsjs/

A complete overview of all resources can be found at https://developers.google.com/analytics/devguides/collection/
July 8, 2014
Has the script above changed at all since 2013? It doesn't seem to be working for me.