Take the 2-minute tour ×

I am just learning GA as part of a new program our company is rolling out. I'm sending the following custom event whenever a user clicks on a button on our test site:

<button onclick="_gaq.push(['_trackEvent', 'button1', 'clicked'])">Button 1</button>

I need to output data like this to a table, so how do I report this event programatically (preferably with PHP)? I can see the event on our GA page under 'Real-Time Events', but I only seem to be able to report things like getPageViews() and getVisits().

Output what data to a table? The only data you have there is number of times clicked. –  Collin Grady Dec 28 '13 at 8:03
That's exactly what I need. I'm just learning the basics, and I can't seem to report the number of times that button is clicked. –  Simon Plumaj Dec 31 '13 at 17:57
Please add more information about what kind of reporting you desire, what format it would be in, and how you would access it. A "table" created with "PHP" is leaving me scratching my head. –  Stephen Ostermiller Jan 24 at 11:56
comments disabled on deleted / locked posts

migration rejected from stackoverflow.com Jan 24 at 11:55


closed as unclear what you're asking by Stephen Ostermiller Jan 24 at 11:55
