Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » EnableContentLanguages
- » General Support
- » Tracking Multiple Template with...
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
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.
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.
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
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
- Index
- » EnableContentLanguages
- » General Support
- » Tracking Multiple Template with...
Board Info
- Board Stats:
- Total Topics:
- 1693
- Total Polls:
- 6
- Total Posts:
- 5958
- Posts this week:
- 2
- User Info:
- Total Users:
- 7843
- Newest User:
- alexhills
- Members Online:
- 0
- Guests Online:
- 141
- 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