Hi,
Today I have some time to play with this package to add a little widget to default dashboard, and the result is pretty neat.
To anyone who has circumstances installing this package, below are my settings and notes:
1. Install analytics dashboard widget package
2. Config your system settings: filter out
analytics. Enter neccessary settings:
- the analytics_accountId: UA-[xxxxxxxx]-1 (only the number inside the square brackets)
- The profileID under: Admin>Profile name>Profile Settings>Profile ID: ga:xxxxxxxx (suffix the ga:)
- The analytics_sessionToken: to get this, first add your domain by visiting this link:
https://accounts.google.com/ManageDomains
Add new domain, make sure the Target URL path prefix is
http://www.yoursite.com/manager/index.php (or your customed path to modx manager). After adding the domain, you should get:
OAuth Consumer Key: www.yoursite.com
OAuth Consumer Secret: xxxxxxxxxxxxxxxxxxxxx
- analytics_sitename: www.yoursite.com
- analytics_webPropertyId: UA-273xxxxx-1
3. Note: when you click the link inside the widget to authorize, in some cases you have to lowercase Yoursite.com to yoursite.com (I met the same problem, so maybe google fixed it after the latest update of this package.)
4. Add google analytics widget to default dashboard: Click on Dashboard and config the default dashboard, add the google analytics widget, drag and sort it the way you want.
That's how I made the package worked. Hope it will solve your problem.