Google Analytics Email Alerts

John brought to my attention a neat little Google Analytics PHP script from Latent Motion. It emails you whenever a website of yours drops in visits, page views, has sales spikes, changes in keyword trends, or in adwords ROI.

Setup requires alerts.php, googleanalytics.class.php (both are included in the zip) and the ID's for your sites (that's the id=[numbers] in the URL of a report).

Customizing the script is easy, you just put your email address, analytics login/password, and so on in their places at the top of the script like so:

12345678, “deniSite2.org” => 1234568, “demoSite3.org” => 1234569 ); ]]>

Then just upload to your server and set it to run as a standard cron job. Pretty easy.

You can get more info, as well as download the scripts at the Latent Motion website.

Author

cp_admin

Share
Published by
cp_admin

Recent Posts

Introducing Analytics Advisor in Google Analytics: Platform Expertise at Your Fingertips

If you’ve ever stared at a Google Analytics dashboard wondering where to start, or wished…

6 days ago

Unlocking the Full Potential of Amplitude Analytics with the Browser SDK

One of the first decisions a new Amplitude client must make is how to ingest…

1 week ago

Transform with Google: Accelerate with AI

A Recap of the Merkle Cardinal Path & Google NYC Event – Nov 20, 2025…

1 week ago

This website uses cookies.