fix template variable for analytics
(cherry picked from commit 006f096c766f9e27a0e114e3d2bed9e15b71ae3c)
extract analytics to tag, add to map view page
(cherry picked from commit 776d4447b72f59ef6b3c7b9082f3658c5c90179d)