Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Tracking Multiple Template with segmented reports for Google Analytics

Re: Tracking Multiple Template with segmented reports for Google Analytics

Ok, I found a problem with the original code. I was setting the custom variable AFTER the trackPageview call, so Google was never being notified of the custom variable sad

So, try it this way:

<script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-XXXXX-X']); // <== put your GA code here
    _gaq.push(['_setCustomVar',
      1,
      'Template',
      'MyTemplateName' // <== customise here for each template
   ]);
    _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>


Really sorry about this. I'm just trying the new version myself and will let you know if/when it starts working.

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Re: Tracking Multiple Template with segmented reports for Google Analytics

And...... success! I'm getting stats off GA, using custom reports, and tracking the dimension "Custom Variable (Value 1)". It's giving me "yoo_nu" which is the name of my template.

smile

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Re: Tracking Multiple Template with segmented reports for Google Analytics

OK Great, I did the change. I will get back to you as soon as I get some data.

Cheers m8,
Alex

atherrien
Modder Extraordinaire
ranks
useravatar
Offline
140 Posts
Administrator has disabled public posting

Re: Tracking Multiple Template with segmented reports for Google Analytics

OK I got some data, but here's the thing:

Like a lot of people I use data filtering in various profiles. I set up a profile for paid click with the filter "only includes CPC", same thing for organic source and such...

There is a problem with the custom variable (value 1) for filtering the data. Custom field 1 in data filtering is not attached to custom variable (value 1) apparently according to the complaints i've read, and no other filter for that matter.

Here's a thread about it: http://www.google.com/support/forum/p/G … &hl=en

A lot of people are looking for that filter and google isn't doing anything to implement it.

So one solution a guy pointed out would be to push the value in the User Defined filter. I can't find the coding for it, it seems there is something I don't understand...

If it works, I will be able to have a profile for each template with it's own filter like the example I gave in introduction for this post.

Cheers,
Alex

atherrien
Modder Extraordinaire
ranks
useravatar
Offline
140 Posts
Administrator has disabled public posting

Re: Tracking Multiple Template with segmented reports for Google Analytics

Alex,

Although I'm very interested in the solution to this, it has gotten to be outside the realm of support for MetaMod or MetaTemplate. Could I suggest that you take this up with Google, and continue to trawl their forums for alternative methods of achieving the results you are after?

Sorry I can't help more with this.

Best regards,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Re: Tracking Multiple Template with segmented reports for Google Analytics

Alright Stephen I will check this out on my own. If I get anything interesting I will report back.

Thanks.

atherrien
Modder Extraordinaire
ranks
useravatar
Offline
140 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1696
Total Polls:
6
Total Posts:
5941
Posts this week:
7
User Info:
 
Total Users:
5408
Newest User:
obtoc67505
Members Online:
0
Guests Online:
145

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked