Sample Exchange

 View Only

Using Wavefront with Google Analytics 

Mar 28, 2018 01:33 AM

Among the things I do at VMware is manage web sites. So Google Analytics is super important to me. Since I work in the Wavefront team, I thought I'd try building something which would pull GA data at specific times. So I built this PHP.

I generally use it in a crontab script. This is what I do to pull the sessions, hits and bounce rate in PHP.

#!/bin/bash
php /home/broth/code/ga/WFGAnalytics.v1.php -l -7
php /home/broth/code/ga/WFGAnalytics.v1.php -l -7 -mga:hits
php /home/broth/code/ga/WFGAnalytics.v1.php -l -7 -mga:bounceRate

 


#metrics
#google
#wavefront
#analytics
#Apache2.0
#php
#TanzuObservabilitybyWavefront
#PHP

Statistics
0 Favorited
1 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
gz file
WFGAnalytics.php   2 KB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Related Entries and Links

No Related Resource entered.