javascript - Button clicks count as pageviews -


my client has single page website , want each click on main menu site area count pageview in google analytics. possible? advised him use events.

yes, call _trackpageview in javascript.

_trackpageview()  _trackpageview(opt_pageurl) main logic gatc (google analytic tracker code). if linker functionalities enabled, attempts extract cookie values url. otherwise, tries extract cookie values document.cookie. updates or creates cookies necessary, writes them document object. gathers appropriate metrics send ucfe (urchin collector front-end).  async snippet (recommended) 

https://developers.google.com/analytics/devguides/collection/gajs/methods/gajsapibasicconfiguration#_gat.ga_tracker_._trackpageview


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -