Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5951991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:37:02+00:00 2026-05-22T17:37:02+00:00

Has anyone ever done Google Analytics tracking from a PHP command line program? I

  • 0

Has anyone ever done Google Analytics tracking from a PHP command line program?

I have a PHP command line program that is run through cron. It will grab data every 5 minutes and I need to track that.
Looked at the GA library but it looks like either it’s using JavaScript or it needs an <img> tag.

Please enlight.

Thank you,
Tee

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:37:03+00:00Added an answer on May 22, 2026 at 5:37 pm

    http://code.google.com/p/serversidegoogleanalytics/

    Never used it myself but looks like exactly what you’re looking for.

    Edit:
    Just pondering your question again and realised you were asking specifically for PHP CLI as a command line program. Just wanted to make sure you’re aware that you can just use it to call a file and that’ll be the only command line part. The rest of the program can be full OOP code (As my suggestion is structured) which includes files and extends classes.

    So using CLI as Command line isn’t really limiting as your tone suggests.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone ever done work to get Ruby to do continuations (like Seaside on
Has anyone ever modified the post-new.php file in their WordPress installation? I want to
Has anyone ever tried making the drop-downs appear like a carousel? I have a
Has anyone ever set up Cruise Control to build an OS X Cocoa/Objective-C project?
Has anyone ever heard of a UNIX shell written in a reasonable language, like
Has anyone ever tried, or had any success at getting Wascana (Eclipse CDT +
Has anyone ever seen the storage class auto explicitly used in C/C++? If so,
Has anyone ever used the Bridge pattern in a real world application? If so,
has anyone ever tried to get the list of all the movieclips (even the
Has anyone here ever used C++'s placement new? If so, what for? It looks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.