se7enxweb / nxc_view_from_ga
Update views count from google analytics Official Community Project: usable with Exponential 6 after review; not yet in the App Store.
Package info
github.com/se7enxweb/nxc_view_from_ga
Type:exponential-extension
pkg:composer/se7enxweb/nxc_view_from_ga
Fund package maintenance!
Requires
- php: >=8.0
- se7enxweb/exponential-legacy-installer: ^2.2.6
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-03 19:17:10 UTC
README
Update views count from google analytics
INSTALLING:
-
Create "Service account" at https://code.google.com/apis/console and enable "Analytics API" service, after creating account you need to download and include private key file. 1a. Add "service_email" as new user in you google analytics account.
-
Set client_id, service_email, path_to_key and profile_id for your Google Analytics account in settings file, section [General] -> variable GAData.
-
Specify classes and parent nodes list which should be updated.
-
Specify AttributeIdentifier, where visits count should be storred. This identifier should have type Integer for correct fetches.
-
Install cronjob "php runcronjobs.php -s siteadmin ga_views".
-
You can also specify IncludeCountsPattern array in settings file which allow to combine visits.
For example IncludeCountsPattern[gallery]=(offset).* will set visits count for all urls like "/gallery/test-gallery", "/gallery/test-gallery/(offset)/0", "/gallery/test-gallery/(offset)/1" etc.
Official status: Official Community Project for Exponential 6. Usable with Exponential 6 after review; not yet in the App Store.