Jump to content

Calling pageTracker._trackEvent in a PHP script


alwoodman

Recommended Posts

Google has a method for logging events in its analytics callex Event Tracking i have successfully installed it using onClick events but i was wondering how i could incorprate it into a PHP if statement for example

 

pageTracker._trackEvent

 

onlclick="pageTracker._trackEvent('Search', 'Post', '22f2c435817f70fdc0b3432586a6b4e8')"

 

thanks

 

Lee

Analytics is primarily a JavaScript application. You can not interact with it on the serverside using PHP.

But if you are going to interact with it you can use a home built API like this one. http://www.electrictoolbox.com/google-analytics-api-and-php/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.