Libnamic / Omeka-S-GoogleAnalytics

Includes simple support for Google Analytics in Omeka S
https://digitalhumanities.libnamic.com
MIT License
3 stars 4 forks source link

An idea for improving the module: multiple tracking codes, one for each exhibition or page slug #1

Closed jomagogo closed 5 years ago

jomagogo commented 5 years ago

I have an idea for improving this module.

The goal to achieve is having multiple sites in Google Analytics based on the page slug of each different exhibition. This will let us distinguish among the different pages (marked as slug in Omeka S site administration) and apply certain rules of access to different users to restrict their access to Google Analytics only to those sites that has sense (think about two departments of an organization that has the same Omeka S server and a separate exhibition for both of them. One department only will have permission to see its site analytics and can't see the other one).

Implementation: Module Configuration Form For the "URL slug" of every site, 2 fields: Slug --> Here we would show the slug from the site (extracted from the database of Omeka S) Google Analytics code --> Here we would insert the tracking ID (if we want to track this site)

Do you see viable this improvement? How do you think about it? Thanks

Boca13 commented 5 years ago

Hello @jomagogo, Thank you for your proposal. In summary, I could add a form to input a Google Analytics tracking code for each site (in the site settings), and default to the global option when not specified. That should fullfill your needs.

I'll try to code it within a couple weeks.

Best regards.

Boca13 commented 5 years ago

The latest release v1.1.0 does this. Thank you for your suggestion.