• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Better integration with Google Analytics

dknife

Active member
#2
Wouldn't this be fairly easy to achieve in Analytics? A custom report, table of top content, regex for drilldown to subforums only?
 

ForestForTrees

Well-known member
#3
Wouldn't this be fairly easy to achieve in Analytics? A custom report, table of top content, regex for drilldown to subforums only?
Not necessarily. Suppose, for example, someone viewed this thread. Clearly Google Analytics has a great deal of data at it's disposal, but it doesn't typically know that thread 66700 (i.e. this thread) is associated with node 18, the "XenForo Suggestions" subforum. Looking at a typical URL for this thread, for example, note that it does not mention either node 18 or "XenForo Suggestions:"
http://xenforo.com/community/threads/better-integration-with-google-analytics.66700/

As @digitalpoint suggested, the way to give it that information would be to use a Google Analytics Custom Variable. By adding a line of JavaScript when the GA tracking code is called from the google_analytics template, it will be easier to make reports and Advanced Segments in GA.
 

dknife

Active member
#4
Ah yes I see what you mean, you are correct, there is no correlation with the nodes for the threads in the URL. I guess visitors flow wouldn't be very comprehensive either since direct to thread via search engines won't be relevant. Thanks for the info.
 

Jeffin

Well-known member
#5
+1 from me for better integration Google Analytics, Google Webmasters and Google Adsense. I wouldn't mind if it were an add-on but an official one I would definitely pay for.
 

digitalpoint

Well-known member
#6
So I added username and node_id tracking as custom variables for my "Better Analytics" add-on (just testing it now on my site... not available for others yet).

For example, you can see the node IDs by visits here (I have it intentionally using the numeric value vs. the string/name since the forum name could change over time if you change the wording or something):

upload_2014-1-27_11-19-47.png

And then you can also see it broken down by username:

upload_2014-1-27_11-21-17.png

You can combine the two to see where specific users tend to hang out if you want (you can also break it down by anything really...

upload_2014-1-27_11-31-53.png

It lets you combine the data with anything Analytics tracks really... Like if you have the demographic/interests stuff enabled for Analytics you can break down the age range of people using certain forums (as an example):

upload_2014-1-27_11-36-46.png
 

digitalpoint

Well-known member
#8
Can you add usergroup tracking too? @digitalpoint
The problem with usergroup tracking would be that each user can be part of an infinite number of user groups. Not really sure what would happen if you tried to apply multiple values to a single item for each tracking request. It would be similar if you were trying to tell it the user is using 1.2.3.4 as their IP address *and* 5.6.7.8 as their IP address *and* 11.22.33.44 as their IP address... or that the user is using Chrome as their browser *and* Firefox as their browser on that same page view.

You could of course do it with just the primary usergroup since you can only have 1, but not sure how useful that really would be.
 
#11
You should already be able to tell since members will have a username set, guests wouldn't.
So thats all you did? Set the username and node_id tracking as custom variables and push those to analytics then created the custom google analytics report? Hmm, I can't seem to dig out your analytics snippet. Seems easy enough.
 

dihuta

Formerly Dinh Thanh
#13
So I added username and node_id tracking as custom variables for my "Better Analytics" add-on (just testing it now on my site... not available for others yet).

For example, you can see the node IDs by visits here (I have it intentionally using the numeric value vs. the string/name since the forum name could change over time if you change the wording or something):

View attachment 65829

And then you can also see it broken down by username:

View attachment 65830

You can combine the two to see where specific users tend to hang out if you want (you can also break it down by anything really...

View attachment 65831

It lets you combine the data with anything Analytics tracks really... Like if you have the demographic/interests stuff enabled for Analytics you can break down the age range of people using certain forums (as an example):

View attachment 65832
Nice Analytics.
Great to see you release the update!
 

digitalpoint

Well-known member
#16
It's actually pretty amazing how fast you start seeing data. I have a tool to generate percentage area charts via your Google Analytics account (via API), and it's already starting to register the change for a couple of the more popular areas).

Literally it's been changed for about 5 minutes, and you can see the change for a few sections already...

BTW - it's a terribly useful tool if anyone wants to play with it with their own data: https://tools.digitalpoint.com/analytics-charts

upload_2014-1-27_23-59-38.png
 

digitalpoint

Well-known member
#18
That looks great!! I assume the node id includes only the forum views right? Not the threads of each node as well?
No, it's complete usage of the forum (thread listings AND individual threads).

Not a ton of data on this (only about 45 minutes worth), but it's nice to see what forum areas are the most popular (now that it's easier to read than just the node ID)...

upload_2014-1-28_1-26-6.png
 

Dakis

Well-known member
#19
That is absolutely incredible then. I have a huge need to be able to tell which forums of my site get most visits, etc.

I am eagerly awaiting for this to be released. Thousand thanks!