Google analytics problem

alt=
DannyA
@dannya
10 years ago
584 posts
I'm seeing some strange behavior. I have 2 servers, one test and once dev. They both have the same code. They both have the google analytics module 1.1.1 installed. However the global config screen for each is different. One works, one doesn't. I ran integrity check and everything passed. The info tab on the module shows 1.1.1 for both.

Why the difference?
jpg
 •  76KB


updated by @dannya: 07/21/14 10:20:35PM
douglas
@douglas
10 years ago
2,791 posts
Try reloading the module from your ACP > Markteplace > Tools > Reload Modules And Skins on the site that doesn't work, then run the Integrity Check Tool and Clear Cache Tool to see if that fixes the issue.

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
alt=
DannyA
@dannya
10 years ago
584 posts
Did all of the above. NO luck.

Which is the correct interface for the GA module (from the screenshot above)?
updated by @dannya: 06/12/14 05:38:40PM
douglas
@douglas
10 years ago
2,791 posts
The top image should be what you see.

I don't really have a site that I can setup the module on since my sites are just test sites.

Are you seeing any php errors or debug log entries?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
alt=
DannyA
@dannya
10 years ago
584 posts
nothing related to google analytics
michael
@michael
10 years ago
7,718 posts
Fresh install of the module looks like this for me:
updated by @michael: 06/13/14 10:29:31PM
alt=
DannyA
@dannya
10 years ago
584 posts
So, i did a fresh install. And thats how it looks. But I'm not seeing any data in GA
michael
@michael
10 years ago
7,718 posts
open the page. See if the code is in there.

Should look something like this:
<script type="text/javascript">
        (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-123456-11', { 'clientId': 'bBBBBBB-BBBBB-BBBB-BBB-fBBBBBBBBBBc' });
ga('send','pageview');
    </script>
alt=
DannyA
@dannya
10 years ago
584 posts
You want me to view source of home page? It does not show up there.
updated by @dannya: 06/14/14 01:51:48AM
michael
@michael
10 years ago
7,718 posts
Thats the problem then. It should. Try a different skin.
brian
@brian
10 years ago
10,148 posts
Sounds like your skin might be missing some of the javascript sections in the footer where GA would load - make sure you have this:

{if isset($css_footer_href)}
    {foreach from=$css_footer_href item="_css"}
        <link rel="stylesheet" href="{$_css.source}" media="{$_css.media|default:"screen"}"/>
    {/foreach}
{/if}
{if isset($javascript_footer_href)}
    {foreach from=$javascript_footer_href item="_js"}
        <script type="{$_js.type|default:"text/javascript"}" src="{$_js.source}"></script>
    {/foreach}
{/if}
{if isset($javascript_footer_function)}
    <script type="text/javascript">
        {$javascript_footer_function}
    </script>
{/if}

in your skin footer.tpl file.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
10 years ago
584 posts
It's in the body of the footer.tpl file. But still nothing in GA
brian
@brian
10 years ago
10,148 posts
andersda:
It's in the body of the footer.tpl file. But still nothing in GA

If the JS code is showing when you "view source", then it's working on JR's end. You just to double check a couple things:

- make sure your GA ID is correct

Hope this helps!
- make sure you are using the proper analytics format (i.e. standard vs. universal).


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags