MODx themes for MODx Revo CMS
  • Welcome to MDxThemes - MODx themes website !
  • Premium high quality Website Modx themes
  • Bootstrap enabled MODx themes
  • HTML5, CSS3, responsive & SEO enabled themes
  • Modx theme Documentation and Support
  • MODx theme tutorials on building a website with MODx CMS.
  • Fast, super easy & powerful theme management system.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: How to get Google Analytics Code to showup

How to get Google Analytics Code to showup 5 years 6 months ago #80

Hello again all. I have put the GoogleAnalytics code in the theme and configuration and it is not showing up in them template. Any ideas?
Last Edit: 5 years 6 months ago by Jason Monette. Reason: found the fix
The administrator has disabled public write access.

Google Analytics Code not showing up 5 years 6 months ago #91

You can place the following code in your "mdx_BaseHead" chunk before </head>
[[++TrackingCode]]
Last Edit: 5 years 6 months ago by Mangesh.
The administrator has disabled public write access.

Google Analytics Code not showing up 5 years 6 months ago #94

That did not work.....here is my basehead chunk

<!doctype html>
<html>
<head>
<title>*pagetitle | ++site_name</title>

<meta name="viewport" content="width=device-width; initial-scale=1.0" >
<meta http-equiv="Content-Type" content="text/html; charset=++modx_charset" >
<meta name="description" content="*mdx_description" >
<meta name="keywords" content="*mdx_keywords" >
<meta name="Author" content="" >

<base href="++site_url" >
<link rel="dns-prefetch" href="//ajax.googleapis.com">


<link href='fonts.googleapis.com/css?family=#[[*mdx_ConfigID.tv.mdx_baseGoogleFont]]#[[*mdx_ConfigID.tv.mdx_baseGoogleFontWeight]]|#[[*mdx_ConfigID.tv.mdx_baseGoogleFontTitle]]#[[*mdx_ConfigID.tv.mdx_baseGoogleFontWeight]]' rel='stylesheet' type='text/css'>
<link type="text/css" rel="stylesheet" href="/assets/templates/mdx_collab/css/bootstrap.min.css" />
<link type="text/css" rel="stylesheet" href="/assets/templates/mdx_collab/css/flexslider.css" />
<link type="text/css" rel="stylesheet" href="/assets/templates/mdx_collab/css/font-awesome.css" />
<link type="text/css" rel="stylesheet" href="/assets/templates/mdx_collab/css/font-awesome.min.css" />
<link type="text/css" rel="stylesheet" href="/assets/templates/mdx_collab/css/jquery.bxslider.css" />
<link type="text/css" rel="stylesheet" href="/assets/templates/mdx_collab/css/menu.css" />
<link type="text/css" rel="stylesheet" href="/assets/templates/mdx_collab/css/nojs.css" />
<link type="text/css" rel="stylesheet" href="/assets/templates/mdx_collab/css/prettyPhoto.css" />
<link type="text/css" rel="stylesheet" href="/assets/templates/mdx_collab/css/parallaxSlider.css" />
<link type="text/css" rel="stylesheet" href="/assets/templates/mdx_collab/css/layout.css" />


<link type="text/css" rel="stylesheet" href="~[[*mdx_ConfigID]]" />

<!--[if IE]>
<link type="text/css" rel="assets/templates/mdx_collab/css/ie.css" />
<![endif]-->

<!--[if IE 6]>
<link type="text/css" rel="assets/templates/mdx_collab/css/ie6.css" />
<![endif]-->

<!--[if lt IE 9]>
<link type="text/css" rel="stylesheet" href="assets/templates/mdx_collab/css/font-awesome-ie7.min.css" />
<script async src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

++TrackingCode (I have double brackets around it, they just don't show up here)

</head>
<body class="pribdr" itemscope itemtype="schema.org/*mdx_schema_category">
Last Edit: 5 years 6 months ago by Jason Monette.
The administrator has disabled public write access.

Google Analytics Code not showing up 5 years 6 months ago #95

The administrator has disabled public write access.

Google Analytics Code not showing up 5 years 6 months ago #96

Did you add the GA code in Configuration ?

Can you copy paste the code here ?
The administrator has disabled public write access.

Google Analytics Code not showing up 5 years 6 months ago #97

yep here it is

<script>
(function(i,s,o,g,r,a,m){i=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-17937546-17', 'auto');
ga('send', 'pageview');

</script>
The administrator has disabled public write access.
  • Page:
  • 1
  • 2