alwoodman Posted August 3, 2009 Share Posted August 3, 2009 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 Link to comment https://forums.phpfreaks.com/topic/168649-calling-pagetracker_trackevent-in-a-php-script/ Share on other sites More sharing options...
WolfRage Posted August 3, 2009 Share Posted August 3, 2009 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/ Link to comment https://forums.phpfreaks.com/topic/168649-calling-pagetracker_trackevent-in-a-php-script/#findComment-889779 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.