In Site Analytics for multisite

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
2/9/2012 8:16:27 AM
Gravatar
Total Posts 87

In Site Analytics for multisite

Hi Joe,

i have multisite configuration with foldere based related sites.

installed the module and it works fine in main site. but on subsites it says access denied when i click on In Site Analytics icon in admin dashboard, what i'm missing?

Also can you point me where to set profile ID which to use for analytics, can i override the google key from site settings? the idea is that in sitesettings i have same profile id for all related sites, but in GA account i created filtered profiles and want to show filtered profile in analitics of each website in installation. How can i do this?

And one more note, not a question but observation - when i first tryed to install module i made error in configuration of db that will accept the data, so sqript runned with errors and have not created tables, but updated the schema version, so when i fixed the database for analistics and tryed to setup it again it would not runs setup scripts because of schemaversion was updated. so i had to manually delete new rows from schemaversion to force setup script to rerun and create tables. may be you can check and not update schemaversion if there where errors during this step.

Regards,

Victor

2/9/2012 9:39:14 AM
Gravatar
Total Posts 18439

Re: In Site Analytics for multisite

Hi Victor,

installed the module and it works fine in main site. but on subsites it says access denied when i click on In Site Analytics icon in admin dashboard, what i'm missing?

Are you logged in as admin in the child site? It works for me. I copied the /Data/Sites/1/supplementaladminlinks folder to the other sites under /Data/Sites/[SiteID/

You should be able to set the account id the same in Site Settings of each site under the API Keys tab you enter the main account id in the box labelled "Google Analytics Account Code" so that everything is tracked to your main account.

Then in In Site Analytics in the child sites if your are signed in as admin you should be able to go into Analytics Configuration in each child site and set the profile id you want to track as well as set roles allowed to access it.

When using a separate database for In Site Analytics you have to run the scripts manually on the second database because the setup page can only run scripts against the main database. So the setup page is going to install the tables and procs in the main db in any case but they won't be used if you set a different connection string for In Site analytics. So the schema version table is not really a factor, it affects only the things installed in the main db but has no knowledge of the other db used by In Site analytics. If it shows errors on the setup page installing into the main db you can just ignore them since you are using a separate db.

Hope that helps,

Joe

2/9/2012 10:41:55 AM
Gravatar
Total Posts 87

Re: In Site Analytics for multisite

Hi Joe,

1) i'm logged in as administrator (it is related sites) and i can access analytics icon in main site, i copied the config to second site and see the icon  but can not access it.

2) the main site shows me dropdown to choose profiles from my subssites. but i want to be able manually enter different profile. Let me explain in details:

it is folder based subsites, all of the set to youse same GA profile UA-XXXXX-1 - i want all subsites to report in one GA account -  so i can see full statistics for domain, not individual sites, but i created in GA subprofiles to show filtered statistics for each site(folder), so i have few profiles like UA-XXXXX-2, UA-XXXXX-3  and google filters there my stats. If i will select profiles from dropdown list it will be same   UA-XXXXX-1  because i've set it for all profiles. somewhere in documentation it was mentioned that you can trace GA even for external third party website - so there should be place somewhere to enter profile id manually but not using current portal api keys settings.

Regards,

Victor

2/9/2012 11:31:20 AM
Gravatar
Total Posts 18439

Re: In Site Analytics for multisite

Hi Victor,

When you mouse over the admin link in the child site does it show the folder name in the url?

Yes, you should use the same tracking code in all sites from site settings, and you should be able use different profile ids for reporting in In Site Analytics in each child site so you can see the filtered results for each site.

You may need to add these in user.config:

<add key="stsAnalytics:AllowReportsInChildSites" value="true" />
<add key="stsAnalytics:AllowQueryEditingInChildSites" value="true" />
<add key="stsAnalytics:AllowUsingDatabase" value="true" />
<add key="stsAnalytics:AllowUsingDatabaseInChildSites" value="true" />
<add key="stsAnalytics:Tracking1ProfileOnly" value="false" />

Hope that helps,

Joe

2/9/2012 12:40:29 PM
Gravatar
Total Posts 87

Re: In Site Analytics for multisite

Hi Joe,

yes when i hover the admin link i see link like this

http://www.mydomain.com/myfolder/Analytics/Default.aspx

Regards,

Victor

2/9/2012 12:51:46 PM
Gravatar
Total Posts 18439

Re: In Site Analytics for multisite

Did you add the settings I mentioned?

2/9/2012 1:35:24 PM
Gravatar
Total Posts 87

Re: In Site Analytics for multisite

Hi Joe,

thank you for your patience, i missed stsAnalytics:AllowReportsInChildSites , i misunderstood the documentation and thought that i would need it only if want to turn it off and it will work by default.

so my last question is about profile id - is there way to manually enter profile id instead of selecting in dropdown list? or may be directly in some db table? i want to use different profile id from what is written in API keys section of each site

Regards,

Victor

2/9/2012 3:51:18 PM
Gravatar
Total Posts 18439

Re: In Site Analytics for multisite

Hi Victor,

The dropdown list should show all the profiles for your account.

There are 2 settings stored in the mp_SiteSettingsEx table, GoogleAnalyticsProfileId and GoogleAnalyticsSettings

If you want to try setting them manually in the db I suggest first choose from the dropdown so you can see how it should be formatted.

Hope that helps,

Joe

2/9/2012 4:09:37 PM
Gravatar
Total Posts 87

Re: In Site Analytics for multisite

Hi Joe,

Thank you, this is what i needed and i finally understood the dropdown and profile id's used.

Regards,

Victor

2/10/2012 9:13:40 AM
Gravatar
Total Posts 87

Re: In Site Analytics for multisite

Hi Joe,

one more issue - when i visit my profile for some of subsites inside google acount - i only see filtered data fro this subsite, but when i go to Analytics/TodaysTraffic.aspx for some specific subsite i see similar statistics for filtered content and few extra rows showing urls to other subsites - they have all columns (page views, entrances etc) set to zero except "Visits" column, that contains some number. 

Am i missing one more option again?

Regards,

VIctor

2/14/2012 3:44:00 AM
Gravatar
Total Posts 87

Re: In Site Analytics for multisite

Hi Joe,

the problem still persist, now all subssites in Analytics/ContentAnalysis.aspx section do show some traffic facts for current subsite (seem to match what i see in GA profile when login directly to google). and about 10-15 records with 0 in Page Views column and those records belong to other subsites. Also it seem to be the same list of urls shown on all pages. Could it be some kind of cache (i've restarted the website it didn't help)? or may be you some version fo the library wit extensive logging so i can provide the logs to you? or may be you can find temporary solution to hide records with zero in column (anyway it is strange to show page that has 0 pageviews)?

Regards,

Victor

You must sign in to post in the forums. This thread is closed to new posts.