mapboard
mapboard copied to clipboard
Deploy analytics
Per a conversation with @timwis, basic pageviews should be sent to the main phila.gov
GTM container, and anything more detailed (e.g. button clicks) should go into the GSG container.
User events we want to track:
- [ ] Topic button clicks
- [ ] Imagery button clicks
@tswanson @ajrothwell anything I'm forgetting?
For topic clicks, we'll need to add some kind of data-
attribute to the topic header links to know which one was clicked.
Added attribute data-topic-key
in 48f07c67cc0ce1601f9defb46fd8955c13a394f2.
Both Atlas and CityAtlas (develop
branches) now have two GTM containers: phila.gov and GIS Services Group. Next, set up tracking for topic header clicks.
Topic clicks are now being tracked, however this includes when a topic is closed. There needs to be a class applied to topics that are open, or we have to write a fancy CSS selector, to determine whether the click was an open event or not.